packages feed

th-lift 0.7 → 0.7.1

raw patch · 2 files changed

+5/−4 lines, 2 files

Files

src/Language/Haskell/TH/Lift.hs view
@@ -19,6 +19,7 @@ #endif /* MIN_VERSION_template_haskell(2,4,0) */  #if !(MIN_VERSION_template_haskell(2,10,0))+import Data.Ratio (Ratio) import GHC.Exts (Int(..)) #endif /* !(MIN_VERSION_template_haskell(2,10,0)) */ import Language.Haskell.TH@@ -156,6 +157,6 @@ instance Lift () where   lift _ = [| () |] -instance Lift Rational where-  lift x = return (LitE (RationalL x))+instance Integral a => Lift (Ratio a) where+  lift x = return (LitE (RationalL (toRational x))) #endif
th-lift.cabal view
@@ -1,9 +1,9 @@ Name:               th-lift-Version:            0.7+Version:            0.7.1 Cabal-Version:      >= 1.8 License:            BSD3 License-Files:      COPYING, BSD3, GPL-2-Copyright:          © 2006 Ian Lynagh, © 2010-2014 Mathieu Boespflugg+Copyright:          © 2006 Ian Lynagh, © 2010-2014 Mathieu Boespflug Author:             Ian Lynagh Maintainer:         Mathieu Boespflug <mboes@tweag.net> Homepage:           http://github.com/mboes/th-lift