import Control.Applicative (Applicative(..))
import Control.Monad (Monad(..))
import Data.Eq (Eq(..))
-import Data.Foldable (any)
+import Data.Foldable (elem)
import Data.Function (($), (.), id)
import Data.Functor (Functor(..))
import Data.Int (Int)
ltext = pure . ltext
charH '\n'= KO [Error_Valid_not_horizontal $ TL.singleton '\n']
charH c = Ok $ charH c
- stringH t | any (== '\n') t = KO [Error_Valid_not_horizontal $ fromString t]
+ stringH t | '\n' `elem` t = KO [Error_Valid_not_horizontal $ fromString t]
stringH t = Ok $ stringH t
textH t | T.any (== '\n') t = KO [Error_Valid_not_horizontal $ TL.fromStrict t]
textH t = Ok $ textH t