Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed May 11, 2022
1 parent 7e48473 commit 6a2e7bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Data/YAML/Event.hs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ goNode0 DInfo {..} = goNode
| ii, hasLeadingSpace acc = [Left (tok2pos t, "leading empty lines contain more spaces than the first non-empty line in scalar: " ++ show acc)]
| otherwise = Right (EvPos (Scalar manchor tag sty (T.pack acc)) pos0) : cont rest

go' _ _ _ xs | False = error (show xs)
go' _ _ _ xs = err xs

hasLeadingSpace (' ':_) = True
Expand Down
5 changes: 3 additions & 2 deletions src/Data/YAML/Loader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ module Data.YAML.Loader
, NodeId
) where

import Control.Monad.Fix (MonadFix)
import Control.Monad.State
import Control.Monad.State (MonadState(..), gets, modify,
StateT, evalStateT, state)
import Control.Monad.Trans (MonadTrans(..))
import qualified Data.ByteString.Lazy as BS.L
import qualified Data.Map as Map
import qualified Data.Set as Set
Expand Down
1 change: 1 addition & 0 deletions src/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import Data.Word as X
import GHC.Generics as X (Generic)
import Numeric.Natural as X (Natural)

import Control.Monad.Fix as X (MonadFix)
import Control.Monad.Except as X (MonadError (..))
import Control.Monad.Identity as X
import Control.Monad.Trans.Except as X (ExceptT (..), runExceptT)
Expand Down

0 comments on commit 6a2e7bb

Please sign in to comment.