Coder Social home page Coder Social logo

goa's Introduction

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.

goa's People

Contributors

chrisdone avatar

Stargazers

Rᴀʜᴜʟ avatar PEP 8 Speaks avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.