theam/tintin

Possible bug (or mismatched documentation): eval blocks

Opened this issue · 1 comments

The relevant section for Haskell eval blocks at https://theam.github.io/tintin/05-formatting-your-docs.html says:

Note that the result type must implement the Show type class, or else it will fail.

However, the following fails with a completely different error:

```haskell top
module Mod1 where
import Data.Text

foo :: Bool
foo = False
```

```haskell eval

foo
```

Error:

[ERROR] - CompilationError

/var/folders/j7/fgt692sj0wzg0lvrk86ctnxc0000gn/T/ghc77368_0/ghc_1.hspp:26:3: error:
    • No instance for (Inliterate.Import.AskInliterate Bool)
        arising from a use of ‘Inliterate.Import.askInliterate’
    • In a stmt of a 'do' block:
        Inliterate.Import.askInliterate
          "foo" [Inliterate.Import.Eval] (foo)

Yup, that is a mistake indeed, will get it fixed ASAP