Update for Purescript 0.14

This commit is contained in:
Anupam Jain 2021-04-22 13:11:34 +05:30
parent 6f0215a5d1
commit d6a4c80b81
5 changed files with 424 additions and 472 deletions

View File

@ -9,7 +9,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"purescript": "^0.13.8",
"spago": "^0.18.1"
"purescript": "^0.14.1",
"spago": "^0.20.1"
}
}

View File

@ -105,6 +105,6 @@ in upstream
-------------------------------
-}
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201223/packages.dhall sha256:a1a8b096175f841c4fef64c9b605fb0d691229241fd2233f6cf46e213de8a185
https://github.com/purescript/package-sets/releases/download/psc-0.14.1-20210419/packages.dhall sha256:d9a082ffb5c0fabf689574f0680e901ca6f924e01acdbece5eeedd951731375a
in upstream

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,7 @@ You can edit this file as you like.
-}
{ name = "typeable"
, dependencies =
[ "console"
, "effect"
[ "effect"
, "psci-support"
, "either"
, "exists"
@ -13,7 +12,13 @@ You can edit this file as you like.
, "prelude"
, "tuples"
, "arrays"
, "functors"
, "const"
, "control"
, "foldable-traversable"
, "identity"
, "maybe"
, "newtype"
, "unsafe-coerce"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs", "test/**/*.purs" ]

View File

@ -40,9 +40,11 @@ import Type.Data.RowList (RLProxy(..))
import Unsafe.Coerce (unsafeCoerce)
-- | Indexed TypeReps
data TypeRep :: forall k. k -> Type
data TypeRep a
-- | `Typeable` things have a `TypeRep`
class Typeable :: forall k. k -> Constraint
class Typeable a where
typeRep :: TypeRep a
@ -191,7 +193,9 @@ instance tag10FromTag11 :: (Tag11 t, Typeable a) => Tag10 (t a) where
-- COMMON INSTANCES
-- TODO: Don't know how to use a Row instead of a RowList here
data TypeRow (r :: RL.RowList)
-- (r :: RL.RLProxy)
data TypeRow :: forall k. k -> Type
data TypeRow r
foreign import typeRowToTypeRep :: forall r rl. RL.RowToList r rl => TypeRow rl -> TypeRep (Record r)
foreign import typeRowNil :: TypeRow RL.Nil
foreign import typeRowCons :: forall s t rs. SProxy s -> String -> TypeRep t -> TypeRow rs -> TypeRow (RL.Cons s t rs)