gregwebs / filelocation.hs Goto Github PK
View Code? Open in Web Editor NEWerror and debug function for haskell that give file locations
License: BSD 3-Clause "New" or "Revised" License
error and debug function for haskell that give file locations
License: BSD 3-Clause "New" or "Revised" License
which is on hackage now, but your package requires < 0.4.
Thanks!
Citing from http://hydra.cryp.to/build/538169/log/raw:
Preprocessing test suite 'test' for file-location-0.4.7...
Debug/FileLocation.hs:11:8:
Could not find module ‘Language.Haskell.TH.Instances’
It is a member of the hidden package ‘th-orphans-0.9.0’.
Perhaps you need to add ‘th-orphans’ to the build-depends in your .cabal file.
The docs for Debug.FileLocation.__LOC__
say:
Embed an expression of type Loc containing the location...
However, trying to use it in as a value of type __LOC__
:
module X where
import Language.Haskell.TH.Syntax
import Debug.FileLocation
x :: Loc
x = __LOC__
fails:
[1 of 1] Compiling X ( x.hs, x.o )
x.hs:7:5:
Couldn't match expected type `Loc' with actual type `Q Exp'
In the expression: __LOC__
In an equation for `x': x = __LOC__
Am I doing something wrong?
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.