{-# LANGUAGE OverloadedStrings #-} module Server.Api.Main (handleRoot) where import Server.Core import Control.Monad (msum) import Happstack.Server import qualified Server.Api.V0.Main as V0 handleRoot :: ServerConfiguration -> ServerResources -> ServerPart Response handleRoot :: ServerConfiguration -> ServerResources -> ServerPart Response handleRoot ServerConfiguration serverConfiguration ServerResources serverResources = [ServerPart Response] -> ServerPart Response forall (t :: * -> *) (m :: * -> *) a. (Foldable t, MonadPlus m) => t (m a) -> m a msum [ String -> ServerPart Response -> ServerPart Response forall (m :: * -> *) a. (ServerMonad m, MonadPlus m) => String -> m a -> m a dir String "v0" (ServerPart Response -> ServerPart Response) -> ServerPart Response -> ServerPart Response forall a b. (a -> b) -> a -> b $ ServerConfiguration -> ServerResources -> ServerPart Response V0.handleRoot ServerConfiguration serverConfiguration ServerResources serverResources ]