Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman committed May 15, 2024
1 parent 83cd6a7 commit 2591c52
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/Juvix/Compiler/Nockma/Encoding/Cue.hs
Original file line number Diff line number Diff line change
Expand Up @@ -290,17 +290,6 @@ cueEither =
. runErrorNoCallStack @DecodingError
. cue'

cueJust :: Term Natural -> Either DecodingError (Term Natural)
cueJust =
run
. runErrorWith @(ErrNockNatural' Natural) (\_ _ -> error ("fail"))
. runError @DecodingError
. cue'
. ( \case
TermAtom a -> a
TermCell {} -> error "expected atom"
)

{- `ErrNockNatural a` must be wrapped in a newtype to avoid overlapping instances
with `DecodingError` when errors are handled before the type variable `a` is
resolved.
Expand Down

0 comments on commit 2591c52

Please sign in to comment.