Skip to content

Commit 11042db

Browse files
authored
Merge pull request #142 from josephcsible/revert-136-fail
Revert "Add a proper implementation of fail to the Alex monad"
2 parents f924b24 + 1573844 commit 11042db

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

templates/wrappers.hs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
#if defined(ALEX_MONAD) || defined(ALEX_MONAD_BYTESTRING)
88
import Control.Applicative as App (Applicative (..))
9-
#if __GLASGOW_HASKELL__ >= 800
10-
import qualified Control.Monad.Fail as Fail
11-
#endif
129
#endif
1310

1411
import Data.Word (Word8)
@@ -228,14 +225,6 @@ instance Monad Alex where
228225
Left msg -> Left msg
229226
Right (s',a) -> unAlex (k a) s'
230227
return = App.pure
231-
#if __GLASGOW_HASKELL__ < 800
232-
fail = alexError
233-
#else
234-
fail = Fail.fail
235-
236-
instance Fail.MonadFail Alex where
237-
fail = alexError
238-
#endif
239228

240229
alexGetInput :: Alex AlexInput
241230
alexGetInput

0 commit comments

Comments
 (0)