Skip to content

Commit

Permalink
one more fix in error
Browse files Browse the repository at this point in the history
  • Loading branch information
zoep committed Apr 17, 2024
1 parent 5f0ab5c commit 9b67d5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Act/Error.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ module Act.Error (module Act.Error) where
import Data.List (find)
import Data.List.NonEmpty as NE
import Data.Validation as Act.Error
import Data.Semigroup
import Data.Maybe

import Act.Syntax.Untyped (Pn)

Expand Down Expand Up @@ -69,4 +67,6 @@ findSuccess d comp = case find valid comp of


concatError :: Error e a -> [Error e a] -> Error e a
concatError def l = foldl (*>) def l
concatError def = \case
[] -> def
x:xs -> foldl (*>) x xs

0 comments on commit 9b67d5d

Please sign in to comment.