Minor sample fix of LiftIO for GHC >= 8.0
This commit is contained in:
parent
952aed5a1f
commit
4d0ccf84ef
1 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
{-# LANGUAGE ExtendedDefaultRules #-}
|
||||
|
||||
|
@ -7,7 +8,12 @@ import Database.MongoDB (Action, Document, Document, Value, access,
|
|||
close, connect, delete, exclude, find,
|
||||
host, insertMany, master, project, rest,
|
||||
select, sort, (=:))
|
||||
|
||||
#if (__GLASGOW_HASKELL__ >= 800)
|
||||
import Control.Monad.IO.Class (liftIO)
|
||||
#else
|
||||
import Control.Monad.Trans (liftIO)
|
||||
#endif
|
||||
|
||||
main :: IO ()
|
||||
main = do
|
||||
|
|
Loading…
Reference in a new issue