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

Bug: cant Handle Wrapped Primitive Types. because they does not have Implementations Of Generics #136

Closed
nalchevanidze opened this issue May 24, 2019 · 1 comment

Comments

@nalchevanidze
Copy link
Member

nalchevanidze commented May 24, 2019

data Wrapper a = Wrapper a 
  
instance GQLType (Wrapper Int)

throws compile error

 No instance for (TypeID (Rep (Wrapper Int)))
        arising from a use of ‘Data.Morpheus.Kind.GQLType.$dmtypeID’

now aviable sollution is #137

instance GQLType (Wrapper Int) where
  typeID = const "WrappedInt"

TODO: find out better way

@nalchevanidze nalchevanidze added the help wanted Extra attention is needed label Jun 4, 2019
@nalchevanidze nalchevanidze changed the title Bug: cant Handle Wrapped and Primitive Types that has not Implementations Of Generics Bug: cant Handle Wrapped Primitive Types that has not Implementations Of Generics Jun 8, 2019
@nalchevanidze nalchevanidze changed the title Bug: cant Handle Wrapped Primitive Types that has not Implementations Of Generics Bug: cant Handle Wrapped Primitive Types. because they does not have Implementations Of Generics Jun 8, 2019
@nalchevanidze nalchevanidze removed the help wanted Extra attention is needed label Jun 10, 2019
@nalchevanidze
Copy link
Member Author

fixed in #153

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