{-# LANGUAGE NoImplicitPrelude #-}
module Hmssql.Tds.Parser.OutOfLine
( (>>=), (>>), (*>), (<$>), (<*>), (<$), pure, return, fail
, word8, word16le, word32le, word64le, word32be
) where
import Data.Word (Word8, Word16, Word32, Word64)
import Data.String (String)
import qualified Prelude as M
import Hmssql.Tds.Parser (Recipe, Parser)
import qualified Hmssql.Tds.Parser as P
infixl 1 >>=, >>
infixl 4 <$>, <*>, <$, *>
(>>=) :: Recipe env a -> (a -> Recipe env b) -> Recipe env b
>>= :: forall env a b. Recipe env a -> (a -> Recipe env b) -> Recipe env b
(>>=) = Recipe env a -> (a -> Recipe env b) -> Recipe env b
forall a b. Recipe env a -> (a -> Recipe env b) -> Recipe env b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
(M.>>=)
{-# NOINLINE (>>=) #-}
(>>) :: Recipe env a -> Recipe env b -> Recipe env b
Recipe env a
a >> :: forall env a b. Recipe env a -> Recipe env b -> Recipe env b
>> Recipe env b
b = Recipe env a
a Recipe env a -> (a -> Recipe env b) -> Recipe env b
forall env a b. Recipe env a -> (a -> Recipe env b) -> Recipe env b
>>= \a
_ -> Recipe env b
b
{-# INLINE (>>) #-}
(*>) :: Recipe env a -> Recipe env b -> Recipe env b
Recipe env a
a *> :: forall env a b. Recipe env a -> Recipe env b -> Recipe env b
*> Recipe env b
b = Recipe env a
a Recipe env a -> (a -> Recipe env b) -> Recipe env b
forall env a b. Recipe env a -> (a -> Recipe env b) -> Recipe env b
>>= \a
_ -> Recipe env b
b
{-# INLINE (*>) #-}
(<$>) :: (a -> b) -> Recipe env a -> Recipe env b
<$> :: forall a b env. (a -> b) -> Recipe env a -> Recipe env b
(<$>) = (a -> b) -> Recipe env a -> Recipe env b
forall a b. (a -> b) -> Recipe env a -> Recipe env b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
M.fmap
{-# NOINLINE (<$>) #-}
(<$) :: a -> Recipe env b -> Recipe env a
a
a <$ :: forall a env b. a -> Recipe env b -> Recipe env a
<$ Recipe env b
r = (\b
_ -> a
a) (b -> a) -> Recipe env b -> Recipe env a
forall a b env. (a -> b) -> Recipe env a -> Recipe env b
<$> Recipe env b
r
{-# INLINE (<$) #-}
(<*>) :: Recipe env (a -> b) -> Recipe env a -> Recipe env b
<*> :: forall env a b. Recipe env (a -> b) -> Recipe env a -> Recipe env b
(<*>) = Recipe env (a -> b) -> Recipe env a -> Recipe env b
forall a b. Recipe env (a -> b) -> Recipe env a -> Recipe env b
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
(M.<*>)
{-# NOINLINE (<*>) #-}
pure, return :: a -> Recipe env a
pure :: forall a env. a -> Recipe env a
pure = a -> Recipe env a
forall a. a -> Recipe env a
forall (f :: * -> *) a. Applicative f => a -> f a
M.pure
return :: forall a env. a -> Recipe env a
return = a -> Recipe env a
forall a. a -> Recipe env a
forall (f :: * -> *) a. Applicative f => a -> f a
M.pure
{-# INLINE pure #-}
{-# INLINE return #-}
fail :: String -> Recipe env a
fail :: forall env a. String -> Recipe env a
fail = String -> Recipe env a
forall a. String -> Recipe env a
forall (m :: * -> *) a. MonadFail m => String -> m a
M.fail
{-# NOINLINE fail #-}
word8 :: Parser Word8
word8 :: Parser Word8
word8 = Parser Word8
P.word8
{-# NOINLINE word8 #-}
word16le :: Parser Word16
word16le :: Parser Word16
word16le = Parser Word16
P.word16le
{-# NOINLINE word16le #-}
word32le :: Parser Word32
word32le :: Parser Word32
word32le = Parser Word32
P.word32le
{-# NOINLINE word32le #-}
word64le :: Parser Word64
word64le :: Parser Word64
word64le = Parser Word64
P.word64le
{-# NOINLINE word64le #-}
word32be :: Parser Word32
word32be :: Parser Word32
word32be = Parser Word32
P.word32be
{-# NOINLINE word32be #-}