packages feed

th-orphans 0.6 → 0.6.1

raw patch · 2 files changed

+12/−12 lines, 2 filesdep ~base

Dependency ranges changed: base

Files

src/Language/Haskell/TH/Instances.hs view
@@ -1,6 +1,5 @@ {-# LANGUAGE CPP #-}-{-# LANGUAGE StandaloneDeriving, TemplateHaskell #-}-{-# LANGUAGE TypeSynonymInstances #-}+{-# LANGUAGE StandaloneDeriving, DeriveGeneric, TypeSynonymInstances, TemplateHaskell #-}  {- |   Module      :  Language.Haskell.TH.Instances.Lift@@ -20,7 +19,6 @@ import Language.Haskell.TH.Lift (deriveLiftMany) import GHC.Word ( Word8 ) - -- Orphan Show instances deriving instance Show Loc @@ -82,6 +80,9 @@ deriving instance Ord TyLit #endif +#if MIN_VERSION_template_haskell(2,9,0)+deriving instance Ord TySynEqn+#endif  -- Orphan Ppr instances -- TODO: make this better@@ -92,8 +93,7 @@   ppr l = ppr (LitE l)  -- Orphan Lift instances (for when your TH generates TH!)--- TODO: Shouldn't this have explicit type signatures?---       This follows the pattern of the Lift instances for Int / Integer.+-- This follows the pattern of the Lift instances for Int / Integer. instance Lift Word8 where   lift w = [e| fromIntegral $(lift (fromIntegral w :: Int)) |] @@ -140,6 +140,10 @@                  , ''RuleBndr                  , ''RuleMatch                  , ''TyLit+#endif++#if MIN_VERSION_template_haskell(2,9,0)+                 , ''TySynEqn #endif                  ]) 
th-orphans.cabal view
@@ -1,5 +1,5 @@ name:               th-orphans-version:            0.6+version:            0.6.1 cabal-version:      >= 1.6 build-type:         Simple license:            BSD3@@ -18,18 +18,14 @@                     the version number started.                      library-  build-depends:   base >= 4.2 && < 4.7,+  build-depends:   base >= 4.2 && < 4.8,                    th-lift == 0.5.*    if impl(ghc >= 7.4)-    Build-depends: template-haskell >= 2.7 && < 2.9+    Build-depends: template-haskell >= 2.7 && < 2.10   else     Build-depends: template-haskell >= 2.4 && < 2.7 -  extensions:      CPP,-                   StandaloneDeriving,-                   TemplateHaskell,-                   TypeSynonymInstances   hs-source-dirs:  src   exposed-modules: Language.Haskell.TH.Instances