
24 Feb
2015
24 Feb
'15
9:32 a.m.
On 24/02/15 11:28, Erik de Castro Lopo wrote:
Roman Cheplyaka wrote:
Say I have
parse :: String -> Maybe Value process :: Value -> IO ()
Then (process . fromJust . parse) is the fastest way to compose the two.
Wouldn't
process fromMaybe defaultValue . parse
do as well?
It sure would, just more typing (and a bit more thinking). Roman