Skip to content

Commit 71c85f6

Browse files
Merge #963: Minor updates
2 parents b60f83e + ea53439 commit 71c85f6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Nix/Expr/Types.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ data NRecordType
376376

377377
instance Serialise NRecordType
378378

379-
-- * @NExprF@ - Nix expressions, base functor
379+
-- ** @NExprF@ - Nix expressions, base functor
380380

381381
-- | The main Nix expression type. As it is polimophic, has a functor,
382382
-- which allows to traverse expressions and map functions over them.
@@ -507,7 +507,7 @@ instance TH.Lift NExpr where
507507
pure [| $(TH.lift b) |]
508508
)
509509
#if MIN_VERSION_template_haskell(2,17,0)
510-
liftTyped = unsafeCodeCoerce . lift
510+
liftTyped = TH.liftTyped
511511
#elif MIN_VERSION_template_haskell(2,16,0)
512512
liftTyped = TH.unsafeTExpCoerce . TH.lift
513513
#endif

src/Nix/Thunk.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module Nix.Thunk where
66

77
import Control.Monad.Trans.Writer ( WriterT )
88
import qualified Text.Show
9+
import qualified Data.Kind
910

1011

1112
-- ** @class MonadThunkId@ & @instances@
@@ -19,7 +20,7 @@ class
1920
)
2021
=> MonadThunkId m
2122
where
22-
type ThunkId m :: *
23+
type ThunkId m :: Data.Kind.Type
2324

2425
freshId :: m (ThunkId m)
2526
default freshId

0 commit comments

Comments
 (0)