on master help sign in
Rename, and expose JRec.Internal

Resolves #6

commitd976477eb2ea05f5cefe70291dd95d786717b78b authorSridhar Ratnakumar <srid@srid.ca> dateWed 19 Aug 2020, 19:47 (6 years ago) parent9649572
5 files changed+6−6
README.md+1−1 jrec.cabal+1−1 src/JRec.hs+2−2 src/JRec/Super.hs → src/JRec/Internal.hs+1−1 src/JRec/Tuple.hs+1−1
README.md+1−1
@@ -37,4 +37,4 @@ Run tests inside ghcid using `bin/test`.
3737
3838## Acknowledgement
3939
40−* The `Rec.Super` module is entirely based on the code from [superrecord](https://hackage.haskell.org/package/superrecord).
40+* The `JRec.Internal` module is entirely based on the code from [superrecord](https://hackage.haskell.org/package/superrecord).
jrec.cabal+1−1
@@ -21,8 +21,8 @@ library
2121 hs-source-dirs: src
2222 exposed-modules:
2323 JRec
24+ JRec.Internal
2425 other-modules:
25− JRec.Super
2626 JRec.Tuple
2727 JRec.Field
2828
src/JRec.hs+2−2
@@ -24,8 +24,8 @@ import GHC.OverloadedLabels
2424import GHC.TypeLits
2525import Generic.Data
2626import JRec.Field
27−import JRec.Super (Rec, (:=) (..))
28−import qualified JRec.Super as R
27+import JRec.Internal (Rec, (:=) (..))
28+import qualified JRec.Internal as R
2929import JRec.Tuple
3030import Unsafe.Coerce
3131
src/JRec/Super.hs → src/JRec/Internal.hsrenamed+1−1
@@ -23,7 +23,7 @@
2323-- export a lot of good things, and it was easier to just copy the
2424-- implementation since we don't need much out of it.
2525
26−module JRec.Super where
26+module JRec.Internal where
2727
2828import Control.DeepSeq
2929import Control.Monad.Reader
src/JRec/Tuple.hs+1−1
@@ -2,7 +2,7 @@
22-- TODO: Import this script, and make it generate 'JRec' instead of 'Record'
33module JRec.Tuple where
44import Prelude
5−import qualified JRec.Super as R
5+import qualified JRec.Internal as R
66import Unsafe.Coerce
77class RecTuple tuple fields | tuple -> fields, fields -> tuple where
88 fromTuple :: tuple -> R.Rec fields