Comments (5)
Thank you for the report! You're right that the where'
example is wrong; I'll look into generalizing the type of patBind
so it can appear there (or in let'
).
In the meantime you can use funBind
to construct RawValBind
. I'll also look into making that documentation more clear. See here for an example of generating syntax like ... where q = t
.
from ghc-source-gen.
Actual link:
ghc-source-gen/tests/pprint_examples.hs
Line 54 in a2b1016
from ghc-source-gen.
That will work, thanks!
from ghc-source-gen.
from ghc-source-gen.
from ghc-source-gen.
Related Issues (20)
- Request for new release HOT 8
- Consider requiring `OccNameStr` to initialize pattern vars HOT 1
- Fractions inside patterns don't render correctly
- Expose builtSpan HOT 2
- Provide functions to build names from GHC names HOT 1
- Support for generating Template Haskell code HOT 2
- Add a cabal file to repo HOT 2
- Support for GADTs HOT 1
- Support list comprehensions HOT 2
- Support GHC 8.10 HOT 1
- QuickCheck bounds are outdated
- Support for record creation syntax HOT 1
- Support GHC 9 HOT 11
- funBinds doesn't support infix HOT 1
- collectModuleName breaks in the presence of MagicHash HOT 1
- New hackage version? HOT 6
- Support for generating haddock comments
- Support overloaded strings
- Add pragmas
- GHC 9.4 compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghc-source-gen.