Skip to content

Commit 2cb970e

Browse files
Use unnamed Pi type argument. (#2640)
Now the `FromDhall` and `ToDhall` instances both use unnamed arguments in their type signature. The value of this type is not used on type level so it is not necessary to bring it into scope here. On the value level this obviously is still necessary but that part is untouched regarding this commit. Co-authored-by: gabby <[email protected]>
1 parent 9f51cd8 commit 2cb970e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dhall/src/Dhall/Marshal/Decode.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ instance (Functor f, FromDhall (f (Result f))) => FromDhall (Fix f) where
502502
| a /= b = Core.subst (V a 0) (Var (V b 0)) (Core.shift 1 (V b 0) expr)
503503
| otherwise = expr
504504

505-
expected = (\x -> Pi mempty "result" (Const Core.Type) (Pi mempty "Make" (Pi mempty "_" x "result") "result"))
505+
expected = (\x -> Pi mempty "result" (Const Core.Type) (Pi mempty "_" (Pi mempty "_" x "result") "result"))
506506
<$> Dhall.Marshal.Decode.expected (autoWith inputNormalizer :: Decoder (f (Result f)))
507507

508508
resultToFix :: Functor f => Result f -> Fix f

0 commit comments

Comments
 (0)