From f63610a513712581acf91357fc5d4dfa8af656d2 Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Mon, 5 Nov 2018 19:20:18 +0200 Subject: [PATCH] base-compat in hoist-server-with-context --- .../HoistServerWithContext.lhs | 11 +++++++++-- .../hoist-server-with-context.cabal | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/cookbook/hoist-server-with-context/HoistServerWithContext.lhs b/doc/cookbook/hoist-server-with-context/HoistServerWithContext.lhs index 50792a53..ff6a2192 100644 --- a/doc/cookbook/hoist-server-with-context/HoistServerWithContext.lhs +++ b/doc/cookbook/hoist-server-with-context/HoistServerWithContext.lhs @@ -25,8 +25,15 @@ for our logging example below. This recipe uses the following ingredients: ```haskell -{-# LANGUAGE OverloadedStrings, TypeFamilies, DataKinds, - DeriveGeneric, TypeOperators #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE DeriveGeneric #-} +{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE TypeOperators #-} + +import Prelude () +import Prelude.Compat + import Control.Monad.IO.Class (liftIO) import Control.Monad.Reader import Data.Aeson diff --git a/doc/cookbook/hoist-server-with-context/hoist-server-with-context.cabal b/doc/cookbook/hoist-server-with-context/hoist-server-with-context.cabal index 6ef00252..2447daf9 100644 --- a/doc/cookbook/hoist-server-with-context/hoist-server-with-context.cabal +++ b/doc/cookbook/hoist-server-with-context/hoist-server-with-context.cabal @@ -16,6 +16,7 @@ tested-with: GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.1 executable cookbook-hoist-server-with-context main-is: HoistServerWithContext.lhs build-depends: base == 4.* + , base-compat , text >= 1.2 , aeson >= 1.2 , data-default