tcr / corollary

Cross-compiler from Haskell to Rust, plus parser-haskell.
73 stars 5 forks source link

: interpreted as part of name #55

Closed tcr closed 7 years ago

tcr commented 7 years ago

See Idiomatic.hs:

unsnoc (x:xs) = case unsnoc xs of
    Just (a, b) -> Just (x:a, b)
    Nothing -> Just ([], x)