X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=Network%2FHTTP%2FLucu%2FOrphanInstances.hs;fp=Network%2FHTTP%2FLucu%2FOrphanInstances.hs;h=8fa7e68714437b8270abb7b42d13e3ab35d360dc;hp=333e162cdf5075bb1230059ddc723c13d5bb927a;hb=243b99439640480fc148d2e175247dacce04a222;hpb=9ee424cdca5d3030f8ef38d82b1c59d83fd6a98d diff --git a/Network/HTTP/Lucu/OrphanInstances.hs b/Network/HTTP/Lucu/OrphanInstances.hs index 333e162..8fa7e68 100644 --- a/Network/HTTP/Lucu/OrphanInstances.hs +++ b/Network/HTTP/Lucu/OrphanInstances.hs @@ -12,6 +12,7 @@ module Network.HTTP.Lucu.OrphanInstances ) where import Control.Applicative hiding (empty) +import Control.Monad import Data.Ascii (Ascii) import qualified Data.Ascii as A import Data.ByteString (ByteString) @@ -31,6 +32,12 @@ import Language.Haskell.TH.Syntax import Prelude hiding (last, mapM, null, reverse) import Prelude.Unicode +instance Applicative Q where + {-# INLINE pure #-} + pure = return + {-# INLINE (<*>) #-} + (<*>) = ap + instance Lift ByteString where lift bs = [| Strict.pack $(litE ∘ stringL $ Strict.unpack bs) |]