mirror of
https://github.com/yaitskov/purescript-typeable.git
synced 2024-12-25 13:03:05 +00:00
Update for Purescript 0.14
This commit is contained in:
parent
6f0215a5d1
commit
d6a4c80b81
@ -9,7 +9,7 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"purescript": "^0.13.8",
|
||||
"spago": "^0.18.1"
|
||||
"purescript": "^0.14.1",
|
||||
"spago": "^0.20.1"
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
873
pnpm-lock.yaml
873
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
11
spago.dhall
11
spago.dhall
@ -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" ]
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user