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

Fix Quick Start Tutorial for GHC 7.10 #89

Open
ghost opened this issue May 13, 2015 · 2 comments
Open

Fix Quick Start Tutorial for GHC 7.10 #89

ghost opened this issue May 13, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented May 13, 2015

Expand the code examples and add explanations, so that the tutorial's examples can be compiled without errors with GHC 7.10.

In the current state it is neccessary to either add type annotations or language pragmas (both of which are not given/explained in the tutorial) at various points in the tutorial. For Haskell beginners this might be very non-trivial to figure out.

From a didactic point of view it might be useful to add and explain type annotations to make it work, rather than language pragmas, as the types support the understanding for what's going on and they might be needed anyways when continuing to work with Diagrams. Language pragmas, however, seem quite black-magicky.

@byorgey
Copy link
Member

byorgey commented May 14, 2015

For reference here are some specific problems redwyn was running into: http://lpaste.net/132571 http://lpaste.net/132572

The problem is that GHC 7.10 has gotten a lot stricter about requiring extensions that would be necessary to actually write down any inferred types. So this can be solved either by enabling some extra extensions, or by giving things more concrete type signatures that do not require the extensions.

@fryguybob
Copy link
Member

Some gallery examples also suffer from this. Relevant 7.10 release note is here.

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

2 participants