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

TestCommentLocation.Foo

Description

Examples in various locations...

Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text.

>>> let x = 10

Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text. Some random text.

>>> baz
"foobar"
Synopsis

Documentation

Some documentation not attached to a particular Haskell entity

>>> test 10
*** Exception: Prelude.undefined
...

test :: Integer -> Integer Source #

My test

>>> test 20
*** Exception: Prelude.undefined
...
>>> fib 10
55

fib Source #

Arguments

:: Integer

given n

>>> fib 10
55
-> Integer

Fibonacci of given n

>>> baz
"foobar"

Example:

>>> fib 5
5

Note that examples for fib include the two examples below and the one example with ^ syntax after fix

>>> foo
"foo"

Example:

>>> fib 10
55

Calculate Fibonacci number of given n.

>>> bar
"bar"