Comments (5)
I am also experiencing this problem, quite consistently: touch a file that uses this, and it breaks. Clean and rebuild, and it works until you touch the file again.
It seems like it may be a GHC bug related to interface files and type families, but I'm not sure.
from gogol.
Add the following import to your file to fix this:
import GHC.TypeLits ()
It contains the following bit of code which declares the type instance that is required to compare symbols.
type family EqSymbol (a :: Symbol) (b :: Symbol) where
EqSymbol a a = 'True
EqSymbol a b = 'False
type instance a == b = EqSymbol a b
from gogol.
Hi @runeksvendsen, I've seen your message but I haven't had time to dig in and provide a clear example. The short version is that class constraints will propagate all the way though the code as you've seen. constraints need to be discharged - and to do that possibly an additional combinator may need to be provided.
from gogol.
Allow me to shortly summarize what I don't understand, and what leads me to think there's a bug somewhere. The error I receive is:
• Couldn't match type ‘(("https://www.googleapis.com/auth/datastore"
Data.Type.Equality.== "https://www.googleapis.com/auth/cloud-platform")
Data.Type.Bool.|| ("https://www.googleapis.com/auth/datastore"
Data.Type.Equality.== "https://www.googleapis.com/auth/datastore"))
Data.Type.Bool.|| Network.Google.Auth.Scope.HasScope'
'[]
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"]’
with ‘'True’
The second sub-expression in the expression that allegedly doesn't evaluate to 'True
is ("https://www.googleapis.com/auth/datastore" Data.Type.Equality.== "https://www.googleapis.com/auth/datastore")
which, as far as both GHCi and I can see, should evaluate to 'True
.
Please enlighten me here.
from gogol.
This is a problem for me as well. Cleaning and rebuilding works, but that takes a long time so a workaround would be appreciated.
from gogol.
Related Issues (20)
- Does not build with latest servant HOT 2
- Please release to hackage HOT 1
- Improve typing on table creation
- Using gogol-pubsub with the official PubSub emulator HOT 1
- New major release HOT 9
- Is there a package for Firebase read/write documents?
- Upgrade to new Servant versions HOT 3
- Help with setting metadata for object upload in Google Cloud Storage HOT 1
- Ability to set custom headers for objectsGet
- Cant compile with recent versions of servant HOT 4
- Add myself as maintainer HOT 2
- Allow for user to provide redirectURI for OAuthClient
- firestore: `_vNullValue :: Maybe ValueNullValue` is Nothing for nulls
- Build error with `aeson-2.0.1.0` and GHC 8.0.2 HOT 3
- Is there plans to support dialogflow CX?
- How do I access fields in gogol records? Lens and regular fieldselectors don't work HOT 2
- Google.runGoogle doesn't exist anymore HOT 1
- How are new Scopes managed in `envScopes` HOT 1
- Is the aeson restriction on gogol-core actually necessary?
- Gogol fails to compile with GHC 9.6
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 gogol.