Skip to content

Commit 9d16602

Browse files
authored
Follow-up fixes for #1485 (#1489)
1 parent d5b7c38 commit 9d16602

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

dhall/src/Dhall.hs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ instance (Pretty s, Pretty a, Typeable s, Typeable a) => Exception (ExtractError
264264
function
265265
-}
266266
data InvalidDecoder s a = InvalidDecoder
267-
{ invalidTypeExpected :: Expr s a
268-
, invalidTypeExpression :: Expr s a
267+
{ invalidDecoderExpected :: Expr s a
268+
, invalidDecoderExpression :: Expr s a
269269
}
270270
deriving (Typeable)
271271

@@ -290,8 +290,8 @@ instance (Pretty s, Pretty a, Typeable s, Typeable a) => Show (InvalidDecoder s
290290
\" <> show txt1 <> "\n\
291291
\ \n"
292292
where
293-
txt0 = Dhall.Util.insert invalidTypeExpected
294-
txt1 = Dhall.Util.insert invalidTypeExpression
293+
txt0 = Dhall.Util.insert invalidDecoderExpected
294+
txt1 = Dhall.Util.insert invalidDecoderExpression
295295

296296
-- | @since 1.16
297297
data InputSettings = InputSettings
@@ -404,7 +404,7 @@ True
404404
-}
405405
input
406406
:: Decoder a
407-
-- ^ The type of value to decode from Dhall to Haskell
407+
-- ^ The decoder for the Dhall value
408408
-> Text
409409
-- ^ The Dhall program
410410
-> IO a
@@ -421,7 +421,7 @@ input =
421421
inputWithSettings
422422
:: InputSettings
423423
-> Decoder a
424-
-- ^ The type of value to decode from Dhall to Haskell
424+
-- ^ The decoder for the Dhall value
425425
-> Text
426426
-- ^ The Dhall program
427427
-> IO a
@@ -465,7 +465,7 @@ inputWithSettings settings (Decoder {..}) txt = do
465465
-}
466466
inputFile
467467
:: Decoder a
468-
-- ^ The type of value to decode from Dhall to Haskell
468+
-- ^ The decoder for the Dhall value
469469
-> FilePath
470470
-- ^ The path to the Dhall program.
471471
-> IO a
@@ -481,7 +481,7 @@ inputFile =
481481
inputFileWithSettings
482482
:: EvaluateSettings
483483
-> Decoder a
484-
-- ^ The type of value to decode from Dhall to Haskell
484+
-- ^ The decoder for the Dhall value
485485
-> FilePath
486486
-- ^ The path to the Dhall program.
487487
-> IO a
@@ -547,7 +547,7 @@ inputExprWithSettings settings txt = do
547547
rawInput
548548
:: Alternative f
549549
=> Decoder a
550-
-- ^ The type of value to decode from Dhall to Haskell
550+
-- ^ The decoder for the Dhall value
551551
-> Expr s Void
552552
-- ^ a closed form Dhall program, which evaluates to the expected type
553553
-> f a

dhall/src/Dhall/Main.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -731,11 +731,11 @@ command (Options {..}) = do
731731
Dhall.Core.TextLit (Dhall.Core.Chunks [] text) -> do
732732
Data.Text.IO.putStr text
733733
_ -> do
734-
let invalidTypeExpected :: Expr Void Void
735-
invalidTypeExpected = Dhall.Core.Text
734+
let invalidDecoderExpected :: Expr Void Void
735+
invalidDecoderExpected = Dhall.Core.Text
736736

737-
let invalidTypeExpression :: Expr Void Void
738-
invalidTypeExpression = normalizedExpression
737+
let invalidDecoderExpression :: Expr Void Void
738+
invalidDecoderExpression = normalizedExpression
739739

740740
Control.Exception.throwIO (Dhall.InvalidDecoder {..})
741741

0 commit comments

Comments
 (0)