Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dhall/src/Dhall/Marshal/Decode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
) where


import Control.Applicative (empty, liftA2)

Check warning on line 139 in dhall/src/Dhall/Marshal/Decode.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest - stack.yaml

The import of ‘liftA2’

Check warning on line 139 in dhall/src/Dhall/Marshal/Decode.hs

View workflow job for this annotation

GitHub Actions / macOS-latest - stack.yaml

The import of ‘liftA2’

Check warning on line 139 in dhall/src/Dhall/Marshal/Decode.hs

View workflow job for this annotation

GitHub Actions / macos-13 - stack.yaml

The import of ‘liftA2’

Check warning on line 139 in dhall/src/Dhall/Marshal/Decode.hs

View workflow job for this annotation

GitHub Actions / windows-latest - stack.yaml

The import of `liftA2'

Check warning on line 139 in dhall/src/Dhall/Marshal/Decode.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest - stack.ghc-9.8.yaml

The import of ‘liftA2’
import Control.Exception (Exception)
import Control.Monad (guard)
import Control.Monad.Trans.State.Strict
Expand Down Expand Up @@ -502,7 +502,7 @@
| a /= b = Core.subst (V a 0) (Var (V b 0)) (Core.shift 1 (V b 0) expr)
| otherwise = expr

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

resultToFix :: Functor f => Result f -> Fix f
Expand Down Expand Up @@ -1294,11 +1294,11 @@
duplicates = vList List.\\ Data.Foldable.toList vSet
err | length duplicates == 1 =
"One duplicate element in the list: "
<> (Data.Text.pack $ show $ head duplicates)

Check warning on line 1297 in dhall/src/Dhall/Marshal/Decode.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest - stack.ghc-9.8.yaml

In the use of ‘head’

Check warning on line 1297 in dhall/src/Dhall/Marshal/Decode.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest - stack.ghc-9.8.yaml

In the use of ‘head’
| otherwise = Data.Text.pack $ unwords
[ show $ length duplicates
, "duplicates were found in the list, including"
, show $ head duplicates

Check warning on line 1301 in dhall/src/Dhall/Marshal/Decode.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest - stack.ghc-9.8.yaml

In the use of ‘head’

Check warning on line 1301 in dhall/src/Dhall/Marshal/Decode.hs

View workflow job for this annotation

GitHub Actions / ubuntu-latest - stack.ghc-9.8.yaml

In the use of ‘head’
]
Failure f -> Failure f
extractOut expr = typeError expectedOut expr
Expand Down
Loading