@@ -1,10 +1,12 @@
1{-# OPTIONS_GHC -Wall #-}
1{-# OPTIONS_GHC -Wall #-}
2module Reporting.Result
2module Reporting.Result
3 ( Result(..)
3 ( Result(..)
6 , accumulate
7 , accumulate
9 , mapError
11 , mapError
@@ -70,6 +72,11 @@ warn region warning a =
70-- EXTRACTION HELPERS
72-- EXTRACTION HELPERS
75+untracked :: (Monoid i) => Result () w e a -> Result i w e a
76+untracked (Result () warnings answer) =
77+ Result mempty warnings answer
73from :: (Monoid i) => (e -> e') -> Except [A.Located e] a -> Result i w e' a
80from :: (Monoid i) => (e -> e') -> Except [A.Located e] a -> Result i w e' a
74from f except =
81from f except =
75 case runExcept except of
82 case runExcept except of