Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Dec 28, 2011
1 parent fab1265 commit 935c2f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Data/Object/Yaml.hs
Expand Up @@ -4,6 +4,7 @@
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE PatternGuards #-}
{-|
As a bit of background, this package is built on a few other packages I wrote.
yaml is a low-level wrapper around the C libyaml library, with an enumerator
Expand Down Expand Up @@ -276,9 +277,6 @@ instance MonadTrans PErrorT where
instance MonadIO m => MonadIO (PErrorT m) where
liftIO = lift . liftIO

pfailure :: Monad m => ParseException -> PErrorT m a
pfailure = PErrorT . return . Left

type Parser = StateT (Map.Map String YamlObject) IO

requireEvent :: Event -> C.Sink Event Parser ()
Expand Down

0 comments on commit 935c2f7

Please sign in to comment.