Comments (3)
You can get your code to pass HLint by using:
hlint Sample.hs -XNoUnboxedTuples
There are HSE issues with operators such as (#*:)
, see http://trac.haskell.org/haskell-src-exts/ticket/195 (however, it's their old bug tracker, so it probably needs reraising on their new one). However, in GHC, the (#)
operator is not accepted with the UnboxedTuples
extension, which HLint turns on by default. In general I turn on many extensions to accept more code, which has the cost of rejecting some normal programs. Is (#)
the real example you were using, or did you reduce it first? I can't find that operator in the Lens library (but can find a zillion lens operators which HSE does invalidly reject).
In general, I think HSE are happy with bugs coming originally from HLint, although you might want to @ndmitchell me on them.
from hlint.
That was actually what I was working with; I can't imagine how you weren't able to find it, lens being such a small package and all. :) http://hackage.haskell.org/package/lens-4.0.4/docs/Control-Lens-Review.html is where it's documented.
Anyway, it sounds like this particular instance probably isn't actually a bug in hlint or HSE, it's just a particular design choice for the default behavior?
from hlint.
Yep, for (#)
it's a design choice. However, given that a large and popular language uses #
as an operator, and that HSE gets #
prefixed operators wrong, I'm inclined to remove UnboxedTuples from the default list of extensions. My guess is that most code which actually uses that extension declares it in a LANGUAGE
pragma, so will still work fine.
from hlint.
Related Issues (20)
- `-XBlockArguments`: Avoid Lambda incorrect HOT 5
- Incorrect foldr hint HOT 1
- `apply-refact` removes parens in the whole module
- Not to suggest hints if there are holes in the current code
- `apply-refact` removes parens when replacing with qualified infix operator in prefix usage
- Binaries not provided with 3.6 release HOT 3
- Add aeson < 2.2 upper bound to Hackage HOT 2
- Adding severity to restrictions HOT 1
- `use camel case` emits *two* hints
- Incorrect "Unused LANGUAGE pragma" warning with typed Template Haskell HOT 4
- HLint 3.6.1 is not on Hackage HOT 2
- Statically link binary hlint distributions HOT 4
- Refactor flag can only be used with an individual file HOT 2
- False Positive, suggesting unused TemplateHaskell language pragma HOT 2
- Incorrect suggestion to Use ZipWithM for NonEmpty lists HOT 1
- `cabal install hlint` fails with ghc-9.8.1
- Combining ‘within’ and ‘only’ for import restrictions HOT 1
- Support detecting redundant $ in context of BlockArguments HOT 2
- Avoid capitalisms HOT 2
- Are hlint's severities a bit too high in general? HOT 9
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 hlint.