goa: GHCi bindings to lambdabot

[ bsd3, library, system ] [ Propose Tags ]

Offers an interface to be able to call Lambdabot commands within GHCi. Now works with recent lambdabots.


[Skip to Readme]

Modules

  • GOA

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 3.0, 3.0.1, 3.0.2, 3.1, 3.2, 3.3
Dependencies base (>4 && <5), directory (>=1.0), filepath (>=1.1), process (>=1.0) [details]
License BSD-3-Clause
Author Paolo Martini, Philip K.F. Hölzenspies
Maintainer none
Revised Revision 1 made by ChrisDone at 2014-12-23T20:33:04Z
Category System
Uploaded by ChrisDone at 2013-10-28T21:06:25Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 5313 total (15 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2016-12-12 [all 9 reports]

Readme for goa-3.3

[back to package description]
GOA ~~ GHCi On Acid
===================

This set of tools is an attempt to bring the wonderful world of lambdabot
commands to the GHC interpreter for ease of use.

The set of commands carefully developed in lambdabot during the years has
become a very useful tool for haskellers. For some it is like an addiction.

Installation
------------

-- Add the path to lambdabot's directory to dot-ghci
    $ vi dot-ghci

-- Build
    $ chmod +x Setup.hs
    $ ./Setup.hs configure --prefix=/home/dons
    $ ./Setup.hs build
    $ ./Setup.hs install

-- Add dot-ghci to your default ghci setup. Change setLambdabotHome 
-- according to where your lambdabot is.
    $ cat dot-ghci >> ~/.ghci

Use
---

    $ ghci

Fun
    Prelude GOA> :bs
    :)

Pointfree refactoring

    Prelude GOA> :pl \f x y -> x * y
    const (*)

Search for functions
    Prelude GOA> :index const
    Prelude

Search for documentation
    Prelude GOA> :docs Prelude
    http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html

Find source
    Prelude GOA> :source Prelude
    http://darcs.haskell.org/packages/base/Prelude.hs

Search by name
    Prelude GOA> :hoogle const
    Prelude.const :: a -> b -> a

Search by type
    Prelude GOA> :hoogle a -> [a] -> a
    Prelude.foldl :: (a -> b -> a) -> a -> [b] -> a
    Prelude.foldr :: (a -> b -> b) -> b -> [a] -> b
    Data.List.foldl' :: (a -> b -> a) -> a -> [b] -> a


Extending
---------

    Define new commands with:

        :def command lambdabot "lambdabot-command-name"

Documentation
-------------

The documentation ought to be compliant with the specification of
khjk-structured-text by Sven Moritz Hallberg <http://www.khjk.org/~sm/>.

Dependencies
------------

[Lambdabot]: <http://www.cse.unsw.edu.au/~dons/lambdabot/>.
[khjk-structured-text]: If you want to produce HTML documentation.

Additional Fun
--------------

Look in fcgi for a fastcgi binding for lambdabot.