Skip to content

Commit

Permalink
Mention --allow-unsafe-constructors in the error message for usafe co…
Browse files Browse the repository at this point in the history
…nstructors
  • Loading branch information
AlecsFerra committed Jan 14, 2025
1 parent 3b6ee53 commit 4d70d12
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,7 @@ ppError' _ dCtx (ErrCtorRefinement _ ctorName)
= text "Refinement of the data constructor" <+> ctorName <+> "doesn't admit an arbitrary refinements on the return type"
$+$ dCtx
$+$ nest 4 (text "Were you trying to use `Prop` from `Language.Haskell.Liquid.ProofCombinators`?")
$+$ nest 4 (text "You can disable this error by enabling the flag `--allow-unsafe-constructors`")

ppError' _ dCtx (ErrParseAnn _ msg)
= text "Malformed annotation"
Expand Down

0 comments on commit 4d70d12

Please sign in to comment.