th-orphans 0.5.1.3 → 0.5.2.0
raw patch · 4 files changed
+18/−6 lines, 4 filessetup-changed
Files
- Setup.hs +3/−0
- Setup.lhs +0/−3
- src/Language/Haskell/TH/Instances.hs +14/−2
- th-orphans.cabal +1/−1
+ Setup.hs view
@@ -0,0 +1,3 @@+import Distribution.Simple+main :: IO ()+main = defaultMain
− Setup.lhs
@@ -1,3 +0,0 @@-> import Distribution.Simple-> main :: IO ()-> main = defaultMain
src/Language/Haskell/TH/Instances.hs view
@@ -11,12 +11,21 @@ Portability : portable (template-haskell) -} +-- | Provides Ord and Lift instances for the TH datatypes. Also provides+-- Show / Eq for Loc, and Ppr for Loc / Lit. module Language.Haskell.TH.Instances () where import Language.Haskell.TH.Syntax import Language.Haskell.TH.Ppr import Language.Haskell.TH.Lift (deriveLiftMany) +deriving instance Show Loc++deriving instance Eq Loc+deriving instance Eq Info++deriving instance Ord Info+deriving instance Ord Fixity deriving instance Ord Exp deriving instance Ord Dec deriving instance Ord Stmt@@ -44,8 +53,11 @@ deriving instance Ord Pragma #endif /* MIN_VERSION_template_haskell(2,4,0) */ -deriving instance Show Loc-deriving instance Eq Loc+instance Ord FixityDirection where+ (<=) InfixL _ = True+ (<=) _ InfixR = True+ (<=) InfixN InfixN = True+ (<=) _ _ = False -- TODO: make this better instance Ppr Loc where
th-orphans.cabal view
@@ -1,5 +1,5 @@ name: th-orphans-version: 0.5.1.3+version: 0.5.2.0 cabal-version: >= 1.6 build-type: Simple license: BSD3