Skip to content

Commit

Permalink
mtl-2.3-rc3: Backend.Base: import liftIO and forM_ directly
Browse files Browse the repository at this point in the history
Not via Control.Monad.Writer.
  • Loading branch information
andreasabel committed Feb 18, 2022
1 parent 84c9654 commit 69e2b3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/BNFC.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ library
, process
, string-qq
, time
, transformers
-- for Control.Monad.IO.Class, which is in base >= 4.9 but not below
if impl(ghc < 8.0)
build-depends:
semigroups
Expand Down
2 changes: 2 additions & 0 deletions source/src/BNFC/Backend/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ module BNFC.Backend.Base
) where

import Control.Arrow ( (&&&) )
import Control.Monad.IO.Class ( liftIO )
import Control.Monad.Writer

import Data.Char ( isSpace )
import Data.Foldable ( forM_ )
import Data.Function ( on )
import qualified Data.List as List

Expand Down

0 comments on commit 69e2b3b

Please sign in to comment.