servant/servant-examples/getting-started/GS6.hs

19 lines
303 B
Haskell
Raw Normal View History

2015-05-06 15:57:22 +02:00
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
module GS6 where
import Network.Wai
import Servant
type API = "code" :> Raw
api :: Proxy API
api = Proxy
server :: Server API
server = serveDirectory "getting-started"
app :: Application
app = serve api server