unicode
Description | Output Unicode syntax |
---|---|
Options |
|
Default | never |
Ormolu | never |
Since | v0.9.0.0 |
The detect
option will check to see if the -XUnicode
extension is enabled for a file; if so, turns on unicode, otherwise, turns it off.
Examples
{-# LANGUAGE UnicodeSyntax #-}
loadUser :: forall m. (MonadIO m) => String -> m User
loadUser username = do
mUser <- getUser username
maybe (error "Unknown user") pure mUser
{-# LANGUAGE UnicodeSyntax #-}
loadUser ∷ ∀ m. (MonadIO m) ⇒ String → m User
loadUser username = do
mUser ← getUser username
maybe (error "Unknown user") pure mUser
For more examples, see the test files.