Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

describe

Describe Haskell code in GHCi

Subscribe to updates I use describe


Statistics on describe

Number of watchers on Github 48
Number of open issues 0
Main language Shell
Average time to merge a PR about 1 hour
Open pull requests 0+
Closed pull requests 0+
Last commit about 2 years ago
Repo Created over 2 years ago
Repo Last Updated almost 2 years ago
Size 6 KB
Organization / Authorcommercialhaskell
Contributors1
Page Updated
Do you use describe? Leave a review!
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating describe for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

describe

Describe Haskell code in GHCi

Example

The main use-case is figuring out how infix operators are parsed:

> :describe x <$> y <|> h <* p <*> k
(x Data.Functor.<$> y) GHC.Base.<|> ((h GHC.Base.<* p) GHC.Base.<*> k)

Tada!

Setup (Linux, macOS)

Install the package by running:

git clone https://github.com/commercialhaskell/describe.git
cd describe
sh global-install.sh # requires stack

Setup (Windows)

From a PowerShell terminal, install the package by running:

git clone https://github.com/commercialhaskell/describe.git
cd describe
.\global-install.ps1 # requires stack

Pitfalls

If you use something out of scope, you'll see

<<Non-variable/constructor in infix context>>

Just import the right thing and try again:

> :describe x <$> y <*> z <* p <|> k
(((x Data.Functor.<$> y) GHC.Base.<*> z) GHC.Base.<* p) <<Non-variable/constructor in infix context>> k
> import Control.Applicative
> :describe x <$> y <*> z <* p <|> k
(((x Data.Functor.<$> y) GHC.Base.<*> z) GHC.Base.<* p) GHC.Base.<|> k
describe open issues Ask a question     (View All Issues)
  • over 2 years Installing on Windows
describe questions on Stackoverflow (View All Questions)
  • Boto3 - Describe Redshift
  • describe() funcion over rows instead columns
  • 'Cannot find name describe' in jasmine unit tests in editor, however tests run successfully
  • describe what the below sparql code states
  • GIT submodule fatal: cannot describe
  • Describe cloud formation stack in java aws sdk cannot filter by tag?
  • Describe JUnit test in report
  • describe "this._sender" in Javascript MVC EventDispatcher?
  • How to format the output of kubectl describe to JSON
  • Hmisc::describe() giving frequencies instead of lowest and highest
  • DESCRIBE TABLE equivalent in CockroachDB?
  • Aws lambda describe instances time out
  • Please describe to me how the following piece of code reads the output from a sensor
  • Is there any way to describe namespace classes in yii2?
  • can we use alt fragment to describe multiple choices in uml's sequence diagram?
  • Apache Drill view.drill json syntax to describe complex data types
  • How to describe conditional statement (if-then-else) using PEG
  • How to execute `aws ec2 describe-instances` through Ansible?
  • What is the reason for not working of 'describe' command on oracle?
  • Does it make sense to detect keypoints with SIFT and describe them with SURF or ORB?
  • AWS Java SDK EC2 Describe Instance throws error
  • Use AWS JS SDK in node to describe all ec2 instances
  • Can not describe an index domaine
  • describe vs context in rspec. Differences?
  • How to describe what dereferencing is?
  • Mocha/Chai - Conditionally invoke desired it block uder describe block
  • How can I use strings to describe test cases in Java?
  • Mocha:How to bail only failed describe() in nested describe()?
  • How to describe destructured object arguments in JSDoc
  • Cognitive services - Describe image tags Array Microsoft flow
describe list of languages used
Other projects in Shell