Specify refactorings to apply with apply-refact.
mpickering / refact Goto Github PK
View Code? Open in Web Editor NEWIntermediary between ghc-exactprint and hlint
License: BSD 3-Clause "New" or "Revised" License
Intermediary between ghc-exactprint and hlint
License: BSD 3-Clause "New" or "Revised" License
Specify refactorings to apply with apply-refact.
All useful packages and their dependencies should be on Stackage - http://www.stackage.org/. Somewhat of a requirement for HLint to use Refact, since HLint is in Stackage.
Placing README.md and CHANGELOG in data-files is incorrect, as these files aren't required at runtime. They should probably be moved to extra-source-files or extra-doc-files.
The current definition of SrcSpan takes a lot of memory and is quite prone to space leaks. I would expect to see:
data SrcSpan = SrcSpan {startCol :: {-# UNPACK #-} !Int, startLine :: {-# UNPACK #-} !Int, ...}
That definition takes 32 bytes on a 64bit machine and has no space leaks. In contrast, your definition will be more like 80 bytes and highly likely to space leak if someone isn't careful. Perhaps think about switching. In practice, it might not be a bottleneck, and thus might be not so bad.
Add Data/Typeable to the definitions without exception - they are very handy for SYB style stuff (which HLint does a lot of).
If RType
will always be an enum (as it looks plausible) think about also adding Enum
and Bounded
, which gives you the handy [minBound..maxBound]
to loop over all RType
s, but that one is less important, and arguably there's little chance to by polymorphic over the RType
, so it might not make sense.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.