Skip to content

Commit 8837dcd

Browse files
committed
Drop typelevel-prelude dependency
We only use typelevel-prelude for its re-exports. Instead, we now import Prim stuff directly from Prim, and import Prelude stuff directly from Prelude. Dropping the dependency is the easiest way of dealing with the major version bump of v5.0.0 of typelevel-prelude (which is necessary for v0.13.0 of the compiler).
1 parent c3aabba commit 8837dcd

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

bower.json

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"purescript-functions": "^4.0.0",
2121
"purescript-prelude": "^4.1.0",
2222
"purescript-st": "^4.0.0",
23-
"purescript-typelevel-prelude": "^4.0.0",
2423
"purescript-unsafe-coerce": "^4.0.0"
2524
},
2625
"devDependencies": {

src/Record.purs

+6-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ module Record
1414
, equalFields
1515
) where
1616

17+
import Prelude
18+
1719
import Data.Function.Uncurried (runFn2)
20+
import Data.Symbol (class IsSymbol, SProxy(..), reflectSymbol)
21+
import Prim.Row (class Lacks, class Cons, class Nub, class Union)
22+
import Prim.RowList (class RowToList, kind RowList, Cons, Nil)
1823
import Record.Unsafe (unsafeGet, unsafeSet, unsafeDelete)
1924
import Record.Unsafe.Union (unsafeUnionFn)
20-
import Data.Symbol (class IsSymbol, SProxy(..), reflectSymbol)
21-
import Prelude (class Eq, (&&), (==))
22-
import Type.Row (class Lacks, class Cons, class Nub, class RowToList, class Union, Cons, Nil, RLProxy(RLProxy), kind RowList)
25+
import Type.Data.RowList (RLProxy(..))
2326
import Unsafe.Coerce (unsafeCoerce)
2427

2528
-- | Get a property for a label which is specified using a value-level proxy for

src/Record/Builder.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import Prelude
1515

1616
import Data.Function.Uncurried (runFn2)
1717
import Data.Symbol (class IsSymbol, SProxy, reflectSymbol)
18+
import Prim.Row as Row
1819
import Record.Unsafe.Union (unsafeUnionFn)
19-
import Type.Row as Row
2020
import Unsafe.Coerce (unsafeCoerce)
2121

2222
foreign import copyRecord :: forall r1. Record r1 -> Record r1

test/Examples.purs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Examples where
33
import Prelude
44

55
import Record as Record
6-
import Type.Prelude (SProxy(..))
6+
import Data.Symbol (SProxy(..))
77

88
x_ = SProxy :: SProxy "x"
99
y_ = SProxy :: SProxy "y"

0 commit comments

Comments
 (0)