on master help sign in
base-compat in hoist-server-with-context
f63610aOleg Grenrus
doc/cookbook/hoist-server-with-context/HoistServerWithContext.lhs+9−2
@@ -25,8 +25,15 @@ for our logging example below.
25This recipe uses the following ingredients:
25This recipe uses the following ingredients:
26
26
27```haskell
27```haskell
28−{-# LANGUAGE OverloadedStrings, TypeFamilies, DataKinds,
28+{-# LANGUAGE DataKinds #-}
29− DeriveGeneric, TypeOperators #-}
29+{-# LANGUAGE DeriveGeneric #-}
30+{-# LANGUAGE OverloadedStrings #-}
31+{-# LANGUAGE TypeFamilies #-}
32+{-# LANGUAGE TypeOperators #-}
33+
34+import Prelude ()
35+import Prelude.Compat
36+
30import Control.Monad.IO.Class (liftIO)
37import Control.Monad.IO.Class (liftIO)
31import Control.Monad.Reader
38import Control.Monad.Reader
32import Data.Aeson
39import 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
16executable cookbook-hoist-server-with-context
16executable cookbook-hoist-server-with-context
17 main-is: HoistServerWithContext.lhs
17 main-is: HoistServerWithContext.lhs
18 build-depends: base == 4.*
18 build-depends: base == 4.*
19+ , base-compat
19 , text >= 1.2
20 , text >= 1.2
20 , aeson >= 1.2
21 , aeson >= 1.2
21 , data-default
22 , data-default