doctest-parallel-0.2: Test interactive Haskell examples
Safe HaskellSafe-Inferred
LanguageHaskell2010

Multiline.Multiline

Synopsis

Documentation

z :: Integer Source #

>>> :{
    let
     x = 1
     y = z
   in x + y
  :}
  3

z2 :: Integer Source #

Aligns with the closing

>>> :{
    let
     x = 1
     y = z
   in x + y
     :}
     3

z3 :: Integer Source #

Also works let that's for do:

>>> :{
let
     x = 1
     y = z
:}
>>> y
2

z4 :: Integer Source #

Handles repeated >>> too, which is bad since haddock-2.13.2 currently will strip the leading whitespace leading to something that will not copy-paste (unless it uses explicit { ; } and the users manually strip the >>>)

>>> :{
>>> let
>>> x = 1
>>> y = z
>>> in x + y
>>> :}
3