Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make allUnits work. #53

Open
goldfirere opened this issue Jan 30, 2016 · 0 comments
Open

Make allUnits work. #53

goldfirere opened this issue Jan 30, 2016 · 0 comments

Comments

@goldfirere
Copy link
Owner

Right now,

import Data.Units.SI
import Data.Units.US

do units <- allUnits
   makeQuasiQuoter "u" [] units

fails with a non-letter somewhere. There are multiple problems.

  1. Even if I restrict the imports, Template Haskell finds everything that's exported from any module, regardless of whether it's actually in scope. This may not be fixable.
  2. I'm pretty sure it's Ohms or Angstroms that are causing the trouble. But maybe not, because both symbols respond True to isLetter. In any case, it's not working.

I have no idea if the problem is in this package, in units-parser or in units-defs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant