Since I started programming in Haskell a few years ago I have been using
if-then-else in that manner without indentation and I never knew about this
extension. I thought this is how it works. It seems this is the default
now. But, I remember encountering an error in an older compiler version
once
Hi,
not sure if this helps.
testsuite/tests/parser/should_compile/DoAndIfThenElse.hs gives us
```
{-# LANGUAGE DoAndIfThenElse #-}
module DoAndIfThenElse where
foo :: IO ()
foo = do if True
then return ()
else return ()
```
and there is some other mention in
Huh. I wonder if a section went missing; seems like none of the extensions
that alter or relax layout are documented currently.
(AlternativeLayoutRule, AlternativeLayoutRuleTransitional, DoAndIfThenElse,
NondecreasingIndentation, RelaxedLayout)
IIRC DoAndIfThenElse relaxes a condition implied by
Hi,
I recently found a mention of DoAndIfThenElse extension somewhere. I looked
inside the ghc user guide and could not find any such extension. Then I
looked in the ghc man page, no mention. I googled and found a very sparse
references to it here and there. Then I tried using the extension with
Simon Peyton Jones via ghc-devs writes:
> | > When I have
> | >
> | > BUILD_SPHINX_HTML= YES
> | >
> | > BUILD_SPHINX_PDF = YES
> | > I get this error in my build. Any ideas? I think Sphinx is up to
> | date.
> | > Thanks
> | > Simon
> | >
> | I