Skip to content

Commit

Permalink
fix filterTCStack
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Jun 19, 2024
1 parent e763af8 commit 6cab7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swarm-lang/Swarm/Language/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ prettyTypeErr code (CTE l tcStack te) =
filterTCStack :: TCStack -> TCStack
filterTCStack tcStack = case tcStack of
[] -> []
t@(LocatedTCFrame _ (TCDef _)) : _ -> [t]
t@(LocatedTCFrame _ (TCLet _)) : _ -> [t]
t@(LocatedTCFrame _ TCBindR) : xs -> t : filterTCStack xs
t@(LocatedTCFrame _ TCBindL) : xs -> t : filterTCStack xs

Expand Down

0 comments on commit 6cab7ec

Please sign in to comment.