Skip to content

Commit

Permalink
Please hlint
Browse files Browse the repository at this point in the history
  • Loading branch information
facundominguez committed Nov 7, 2024
1 parent 925f8b7 commit 4db50bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ findVarDefType cbs sigs env _defs (Left x) =
[ "Symbol exists but is not defined in the current file,"
, "and no unfolding is available in the interface files"
]
where

findVarDefType _cbs sigs _env defs (Right x) = do
var <- M.lookup x defs
Expand Down
12 changes: 6 additions & 6 deletions liquidhaskell-boot/src/Language/Haskell/Liquid/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1274,14 +1274,14 @@ rtAliasP f bodyP
hmeasureP :: Parser BPspec
hmeasureP = do
setLayout
(do b <- try (locBinderP <* reservedOp "::")
ty <- located genBareTypeP
popLayout >> popLayout
eqns <- block $ try $ measureDefP (rawBodyP <|> tyBodyP ty)
return (Meas $ Measure.mkM b ty eqns MsMeasure mempty)
do b <- try (locBinderP <* reservedOp "::")
ty <- located genBareTypeP
popLayout >> popLayout
eqns <- block $ try $ measureDefP (rawBodyP <|> tyBodyP ty)
return (Meas $ Measure.mkM b ty eqns MsMeasure mempty)
<|>
do b <- locBinderLHNameP
popLayout >> popLayout >> return (HMeas b))
popLayout >> popLayout >> return (HMeas b)

measureP :: Parser (Measure (Located BareType) LocSymbol)
measureP = do
Expand Down

0 comments on commit 4db50bd

Please sign in to comment.