git.iko.soy/typeable/servant
on master help sign in
base-compat in hoist-server-with-context
commitf63610a513712581acf91357fc5d4dfa8af656d2 authorOleg Grenrus <oleg.grenrus@iki.fi> dateMon 5 Nov 2018, 19:20 (8 years ago) parent79caafe
2 files changed+10−2
doc/cookbook/hoist-server-with-context/HoistServerWithContext.lhs+9−2 doc/cookbook/hoist-server-with-context/hoist-server-with-context.cabal+1
doc/cookbook/hoist-server-with-context/HoistServerWithContext.lhs+9−2
@@ -25,8 +25,15 @@ for our logging example below.
2525This recipe uses the following ingredients:
2626
2727```haskell
28−{-# LANGUAGE OverloadedStrings, TypeFamilies, DataKinds,
29− DeriveGeneric, TypeOperators #-}
28+{-# LANGUAGE DataKinds #-}
29+{-# LANGUAGE DeriveGeneric #-}
30+{-# LANGUAGE OverloadedStrings #-}
31+{-# LANGUAGE TypeFamilies #-}
32+{-# LANGUAGE TypeOperators #-}
33+
34+import Prelude ()
35+import Prelude.Compat
36+
3037import Control.Monad.IO.Class (liftIO)
3138import Control.Monad.Reader
3239import Data.Aeson
doc/cookbook/hoist-server-with-context/hoist-server-with-context.cabal+1
@@ -16,6 +16,7 @@ tested-with: GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.1
1616executable cookbook-hoist-server-with-context
1717 main-is: HoistServerWithContext.lhs
1818 build-depends: base == 4.*
19+ , base-compat
1920 , text >= 1.2
2021 , aeson >= 1.2
2122 , data-default