Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/runeksvendsen/haskell-function-graph
Compose Haskell functions to reach one type from another
https://github.com/runeksvendsen/haskell-function-graph
Last synced: 11 days ago
JSON representation
Compose Haskell functions to reach one type from another
- Host: GitHub
- URL: https://github.com/runeksvendsen/haskell-function-graph
- Owner: runeksvendsen
- License: other
- Created: 2023-09-08T14:13:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-12T08:22:45.000Z (7 months ago)
- Last Synced: 2024-04-12T15:29:34.715Z (7 months ago)
- Language: Haskell
- Size: 7.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Haskell Function Graph
A form of "Hoogle type search" for functions. Enables finding a sequence of composed functions that converts from one type to another. For example, searching for "lazy Text to strict ByteString" returns e.g. `bytestring-0.11.4.0:Data.ByteString.Char8.pack . text-2.0.2:Data.Text.Lazy.unpack`, `text-2.0.2:Data.Text.Encoding.encodeUtf8 . text-2.0.2:Data.Text.Lazy.toStrict` and `bytestring-0.11.4.0:Data.ByteString.toStrict . text-2.0.2:Data.Text.Lazy.Encoding.encodeUtf8`.
## Running
Run
```
nix-shell --run 'cabal run server -- 8080 data/all3.json'
```and visit http://localhost:8080.
### Using Nix
Run
```
$(nix-build --no-out-link)/bin/server-wrapped 8080 data/all3.json
```## Demo
![](docs/img/demo.gif)
## TODO
Run the shell script `TODO.sh` to list unfinished TODOs.