Why are there no Show instances for internal types

2017-03-18 Thread Tom Sydney Kerckhove
cept a diff that adds these? Thank you for your time. -- Tom Sydney Kerckhove signature.asc Description: PGP signature ___ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Re: Why are there no Show instances for internal types

2017-03-18 Thread Tom Sydney Kerckhove
a > > > value, but rather a 'human readable' representation of a value. > > > > > > My questions for you: > > > > > > - Is there a reason that there are no derived 'Show' instances for most > > > types? > &g

Re: Why are there no Show instances for internal types

2017-03-18 Thread Tom Sydney Kerckhove
On 18-03-17 16:13:52, Ben Gamari wrote: > > > On March 18, 2017 9:03:48 AM EDT, Tom Sydney Kerckhove > wrote: > > Snip. > > > >My questions for you: > > > >- Is there a reason that there are no derived 'Show' instances for most > >

Translation of GHC typechecker output to haskell-src-exts's 'Type'

2017-04-01 Thread Tom Sydney Kerckhove
/Language-Haskell-Exts-Syntax.html#t:Type -- Tom Sydney Kerckhove {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RecordWildCards #-} module EasySpec.Discover.Gather where import Import import GHC import GHC.Paths (libdir) import OccName import RdrName import TcRnTypes import T

Re: Translation of GHC typechecker output to haskell-src-exts's 'Type'

2017-04-02 Thread Tom Sydney Kerckhove
On 01-04-17 19:47:15, Ben Gamari wrote: > Tom Sydney Kerckhove writes: > > > Dear GHC Devs, > > Hi Tom, Hi Mr Gamari > I'm afraid the notes in TyCoRep are really all we have. Note that you > should also familiarize yourself with the TyCon type (for reasons y

Re: Translation of GHC typechecker output to haskell-src-exts's 'Type'

2017-04-02 Thread Tom Sydney Kerckhove
On 02-04-17 14:40:05, Tom Sydney Kerckhove wrote: > Is there a way to access the types before this translation happens? > It's okay if I have to assume that type-checking succeeds... I have found a way to do what I want, even after this translation. It relies on the fact that

Type class instances in scope

2017-05-18 Thread Tom Sydney Kerckhove
but I am also expecting to find ALL the other instances that are available for type checking. Is there any documentation on this matter? Failing that, is there anyone who is willing to help me with this problem? Thank you for your time. -- Tom Sydney Kerckhove signature.asc Description: PGP s

Re: Type class instances in scope

2017-05-19 Thread Tom Sydney Kerckhove
Ints where > > > > import Prelude (Int, (+), (-)) > > > > f :: Int -> Int > > f x = x + 1 > > > > g :: Int -> Int > > g x = x - 1 > > > > double :: Int -> Int > > double x = x + x > > > > zero :: Int > >

Re: Type class instances in scope

2017-05-19 Thread Tom Sydney Kerckhove
you are interested in, you can load all of those, and then the instances > for those types will be ready. That's probably the most feasible approach. Then I'd have to find all the types in scope, and find their interfaces. I know how to get all the TyThing's in scope, so it

Re: Type class instances in scope

2017-05-21 Thread Tom Sydney Kerckhove
`. I think that means that it's not locally defined, but rather part of a package that I'm using. Unfortunately that means that I don't really understand how I can load it to find the instances. Would you please hint me at the next step? Thank you for your time. On 19-05-17 23:0