@@ -177,6 +177,7 @@ endOfFile =
179instance Functor Parser where
179instance Functor Parser where
180 fmap f parser =
181 fmap f parser =
181 Parser $ \state cok cerr eok eerr ->
182 Parser $ \state cok cerr eok eerr ->
@@ -191,12 +192,18 @@ instance Functor Parser where
193instance Applicative.Applicative Parser where
194instance Applicative.Applicative Parser where
194 pure = return
196 pure = return
198+ {-# INLINE (<*>) #-}
195 (<*>) = ap
199 (<*>) = ap
198instance Applicative.Alternative Parser where
202instance Applicative.Alternative Parser where
203+ {-# INLINE empty #-}
199 empty = allTheOptionsFailed
204 empty = allTheOptionsFailed
206+ {-# INLINE (<|>) #-}
200 (<|>) = oneOfHelp
207 (<|>) = oneOfHelp
@@ -257,10 +264,12 @@ mergeErrors e1@(ParseError r1 c1 p1) e2@(ParseError r2 c2 p2) =
259instance Monad Parser where
266instance Monad Parser where
267+ {-# INLINE return #-}
260 return value =
268 return value =
261 Parser $ \state _ _ eok _ ->
269 Parser $ \state _ _ eok _ ->
262 eok value state noError
270 eok value state noError
272+ {-# INLINE (>>=) #-}
264 parser >>= callback =
273 parser >>= callback =
265 Parser $ \state cok cerr eok eerr ->
274 Parser $ \state cok cerr eok eerr ->