express 1.0.0 → 1.0.2
raw patch · 4 files changed
+50/−7 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Int.Int16
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Int.Int32
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Int.Int64
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Int.Int8
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Types.Double
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Types.Float
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Types.Word
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Unicode.GeneralCategory
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Word.Word16
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Word.Word32
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Word.Word64
+ Data.Express.Express: instance Data.Express.Express.Express GHC.Word.Word8
Files
- README.md +1/−1
- changelog.md +12/−0
- express.cabal +2/−2
- src/Data/Express/Express.hs +35/−4
README.md view
@@ -32,7 +32,7 @@ Starting from Cabal v3.0, you need to pass `--lib` as an argument to cabal install: - $ cabal install leancheck --lib+ $ cabal install express --lib Basics
changelog.md view
@@ -2,6 +2,18 @@ ===================== +v1.0.2+------++* more Express instances:+ - `Double` & `Float`+ - `Int*` types from `Data.Int`+ - `Word*` types from `Data.Word`+ - `GeneralCategory` from `Data.Char`++* minor fix in README++ v1.0.0 ------
express.cabal view
@@ -1,6 +1,6 @@ -- Cabal file for express name: express-version: 1.0.0+version: 1.0.2 synopsis: Dynamically-typed expressions involving function application and variables. description: Express is a library for manipulating dynamically typed Haskell expressions.@@ -63,7 +63,7 @@ source-repository this type: git location: https://github.com/rudymatela/express- tag: v1.0.0+ tag: v1.0.2 library exposed-modules: Data.Express
src/Data/Express/Express.hs view
@@ -26,7 +26,12 @@ import Data.Express.Core import Data.Typeable++-- for instances+import Data.Int+import Data.Word import Data.Ratio+import Data.Char -- | -- 'Express' typeclass instances provide an 'expr' function@@ -128,10 +133,12 @@ #if __GLASGOW_HASKELL__ < 710 -- No 8-tuples for you:--- On GHC 7.8, 8-tuples are not Typeable instances. We could add a standalone--- deriving clause, but that may cause trouble if some other library does the--- same. User should declare Generalizable 8-tuples manually when using GHC <=--- 7.8.+-- On GHC 7.8, 8-tuples are not Typeable instances.+-- We could add a standalone deriving clause,+-- but that may cause trouble+-- if some other library does the same (orphan instance).+-- User should declare Express 8-tuples manually+-- when using GHC <= 7.8. #else instance ( Express a, Express b, Express c, Express d, Express e, Express f , Express g, Express h )@@ -177,6 +184,30 @@ :$ expr v :$ expr u :$ expr t :$ expr s :$ expr r :$ expr q :$ expr p :$ expr o #endif++instance Express Double where expr = val+instance Express Float where expr = val+instance Express Int8 where expr = val+instance Express Int16 where expr = val+instance Express Int32 where expr = val+instance Express Int64 where expr = val+instance Express Word where expr = val+instance Express Word8 where expr = val+instance Express Word16 where expr = val+instance Express Word32 where expr = val+instance Express Word64 where expr = val+#if __GLASGOW_HASKELL__ < 710+-- No GeneralCategory for you:+-- On GHC 7.8, GeneralCategory is not a Typeable instance.+-- We could add a standalone deriving clause,+-- but that may cause trouble+-- if some other library does the same (orphan instance).+-- Users should declare their own Express GeneralCategory instance+-- when using GHC <= 7.8.+#else+instance Express GeneralCategory where expr = val+#endif+ -- type binding utilities --