MyNixOS website logo
Description

Haskell Busy Bee, a backend for text editors.

This project forms the executable hbb which can be used as backend for text editors to provide them with a rich Haskell editing experience.

hbb: Extraordinary Haskell programming

This project aims to create a tool which should be easily embeddable in text editors to assist them to provide extraordinary editing features for the Haskell programming language. To archieve this, the tool will is based on the library of the Glasgow Haskell Compiler (GHC) and the tool ghc-mod which already improves text editors with a certain number of features.

The name hbb is short for haskell busy bee and should remind one of the programmers using it.

The central library of hbb has been split apart into its own cabal package which has the name libhbb. This library also ships an executable (named libhbb-cli) which has reduced functionality compared to hbb. hbb is able to provide much more functionality because it builds upon the library of ghc-mod. Altogether the following dependencies materialize:

          +---------+
          |   hbb   |
          +---------+
           | (exe) |
           |       |
           v       v
  +---------+     +--------+
  | ghc-mod |     | libhbb |
  +---------+     +--------+
  (lib & exe)     (lib & exe)

hbb as well as ghc-mod (as well as libhbb-cli) have different mode of operations which are dictated by a command line parameter. The target of hbb is it to extend ghc-mod which has currently (as of 2014-09-23) a total of 16 modes (including things like help) by certain things.

One outstanding feature hbb wants to add is the ability to replace the occurence of a function name by an inlined version of its body (its lambda representation).

Extract from the hbb help

hbb version 0.4.0.0 compiled by GHC 7.6.3
Usage:
  hbb list [-g GHC_opt1 -g GHC_opt2 ...] [-l] [-d]
  hbb lang [-l]
  hbb flag [-l]
  hbb browse [-g GHC_opt1 -g GHC_opt2 ...] [-l] [-o] [-d] [-q] [<package>:]<module> [[<package>:]<module> ...]
  hbb check  [-g GHC_opt1 -g GHC_opt2 ...] <HaskellFiles...>
  hbb expand [-g GHC_opt1 -g GHC_opt2 ...] <HaskellFiles...>
  hbb debug  [-g GHC_opt1 -g GHC_opt2 ...] 
  hbb info   [-g GHC_opt1 -g GHC_opt2 ...] <HaskellFile> <module> <expression>
  hbb type   [-g GHC_opt1 -g GHC_opt2 ...] <HaskellFile> <module> <line-no> <column-no>
  hbb split  [-g GHC_opt1 -g GHC_opt2 ...] <HaskellFile> <module> <line-no> <column-no>
  hbb sig    [-g GHC_opt1 -g GHC_opt2 ...] <HaskellFile> <module> <line-no> <column-no>
  hbb refine [-g GHC_opt1 -g GHC_opt2 ...] <HaskellFile> <module> <line-no> <column-no> <expression>
  hbb auto   [-g GHC_opt1 -g GHC_opt2 ...] <HaskellFile> <module> <line-no> <column-no>
  hbb find <symbol>
  hbb lint [-h opt] <HaskellFile>
  ---------- modes supported by libhbb ------------
  hbb locate         [-g GHC_opt1 -g GHC_opt2 ...]               <HaskellFile> <line-no> <column-no>
  hbb inline         [-g GHC_opt1 -g GHC_opt2 ...] [--adapt-ind] <HaskellFile> <line-no> <column-no> [<line-no> <column-no>]
  hbb smart-inline   [-g GHC_opt1 -g GHC_opt2 ...] [--adapt-ind] <HaskellFile> <line-no> <column-no> [<line-no> <column-no>]
  hbb occurrences-of [-g GHC_opt1 -g GHC_opt2 ...]               <HaskellFile> <line-no> <column-no> [<HaskellFile> ...]
  hbb exprtype       [-g GHC_opt1 -g GHC_opt2 ...]               <HaskellFile> <expression>
  hbb apply-to       [-g GHC_opt1 -g GHC_opt2 ...] [-q] <Function of String to String> <Subject of String>
  --- end of modes supported by libhbb ------------
  hbb root
  hbb doc <module>
  hbb boot
  hbb version
  hbb help

<module> for "info" and "type" is not used, anything is OK.
It is necessary to maintain backward compatibility.

  -l           --tolisp              print as a list of Lisp
  -h hlintOpt  --hlintOpt=hlintOpt   hlint options
  -g ghcOpt    --ghcOpt=ghcOpt       GHC options
  -v           --verbose             verbose
  -o           --operators           print operators, too
  -d           --detailed            print detailed info
  -q           --qualified, --quiet  show qualified names / suppress warning (quiet) in mode apply-to
  -b sep       --boundary=sep        specify line separator (default is Nul string)
               --adapt-ind           Adapt the indentation of non-first lines to the (possibly higher) ind of the target environment
Metadata

Version

0.4.0.2

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows