purescript/purescript — pull request #662 by ardumont (2014-10-30 23:53:39+00:00)
Title: Add :b to psci

Add the means to browse the module's types from the repl.

Here is the possible outputs:

```sh
[nix-shell:~/repo/perso/purescript]$ cabal run psci
Preprocessing library purescript-0.5.7.1...
In-place registering purescript-0.5.7.1...
Preprocessing executable 'psci' for purescript-0.5.7.1...
____ ____ _ _
| _ \ _ _ _ __ ___/ ___| ___ _ __(_)_ __ | |_
| |_) | | | | '__/ _ \___ \ / __| '__| | '_ \| __|
| __/| |_| | | | __/___) | (__| | | | |_) | |_
|_| \__,_|_| \___|____/ \___|_| |_| .__/ \__|
|_|

:? shows help

Expressions are terminated using Ctrl+D
> :?
The following commands are available:

:? Show this help menu
:i Import for use in PSCI
:b Browse
:m Load for importing
:q Quit PSCi
:r Reset
:t Show the type of
:k Show the kind of
> :b
Module must be specified.
> :b Data.Eq
module Data.Eq where
import Prim ()
import Prelude ()
newtype Ref a = Ref a
foreign import liftRef :: forall a b. (a -> a -> b) -> Data.Eq.Ref a -> Data.Eq.Ref a -> b
foreign import instance eqRef :: Prelude.Eq (Data.Eq.Ref a)
foreign import instance functorRef :: Prelude.Functor Data.Eq.Ref

> :b Hello
Module 'Hello' not found!
> :b hello
(line 1, column 4):
unexpected 'h'
expecting name or end of input
```