1
0
forked from GitHub/gf-core

*** empty log message ***

This commit is contained in:
peb
2004-06-06 10:11:10 +00:00
parent e78e5a6af7
commit c10aa3b696

View File

@@ -65,7 +65,8 @@ repeatUntil :: (a -> Bool) -> (a -> a) -> a -> a
repeatUntil cond f a = if cond a then a else repeatUntil cond f (f a)
okError :: Err a -> a
okError = err (error "no result Ok") id
-- okError = err (error "no result Ok") id
okError = err (error . ("Bad result occurred" ++++)) id
isNotError :: Err a -> Bool
isNotError = err (const False) (const True)