servant/servant-examples/tutorial/T6.hs

19 lines
320 B
Haskell
Raw Normal View History

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