Giter Site home page Giter Site logo

haskell-beginners-2022 / exercises Goto Github PK

View Code? Open in Web Editor NEW
257.0 257.0 335.0 93 KB

๐Ÿ’ป Exercises for the Haskell Beginners 2022 course

License: Mozilla Public License 2.0

Haskell 98.58% Makefile 1.42%
course exercises hacktoberfest hacktoberfest2022 haskell mentoring

exercises's People

Contributors

abitfrosty avatar alvkoen avatar bulters avatar chshersh avatar chungyc avatar dependabot[bot] avatar fetsh-edu avatar flinner avatar jakalx avatar jedimahdi avatar mcdiarmids avatar nadinda avatar polemius avatar utsav00 avatar vrom911 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

exercises's Issues

Add comments on where to add imports

Turns out that DocTest is not handling imports after "certain statements" (e.g. the line containing $setup in Lecture3.hs) very well. Add some comments in all of the LectureN.hs files on where to "potentially" add imports.

n.b. I will pick this up, this serves mainly as a reminder.

Support GHC 9.2.5

It's now the recommended GHC version according to GHCup and it has some improvements in terms of supporting the OS

image

So it makes sense to bump the version. I propose to do a soft upgrade:

  • Increase the upper base bound to allow GHC 9.2.4
  • Build on CI with 9.2.4 (but only GHC 9.2.4)
  • Update the instructions
  • Keep the old lower bound so people who forked the course earlier could still build it with GHC 8.10.7
  • Test locally that it still builds with GHC 8.10.7 just in case

Solutions exercises

Hi @chshersh! After each week, could you provide the solutions to the exercises of the prev week? Or if the solutions are already available could you let me know where I can find them? thx in advance!

Use 'hedgehog-classes' from Hackage

I'm using the hedgehog-classes package from my fork with the required fixes:

source-repository-package
type: git
location: https://github.com/chshersh/haskell-hedgehog-classes.git
tag: 7a46b92ed62cdae73cdca89db28c71a19020c802

However, a new version was released to Hackage recently. I hope it includes my fix. In that case, we could switch to using the library from Hackage.

Write instructions

  • Haskell installation instructions
  • How to build the project
  • How to run tests
  • Project structure

Dependency error while building

I am trying to build and run the tests and I am getting this error:

cabal build --enable-tests --write-ghc-environment-files=always
Cloning into '/Users/test/exercises/dist-newstyle/src/haskell-h_-d6c8996b412612d'...
remote: Enumerating objects: 946, done.
remote: Counting objects: 100% (59/59), done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 946 (delta 25), reused 36 (delta 12), pack-reused 887
Receiving objects: 100% (946/946), 364.59 KiB | 1.51 MiB/s, done.
Resolving deltas: 100% (534/534), done.
HEAD is now at 7a46b92 Make modules empty when aeson, primitive flags are disabled
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: exercises-0.0.0.0 (user goal)
[__1] next goal: base (dependency of exercises)
[__1] rejecting: base-4.16.3.0/installed-4.16.3.0 (conflict: exercises =>
base^>=4.14)
[__1] skipping: base-4.17.0.0, base-4.16.3.0, base-4.16.2.0, base-4.16.1.0,
base-4.16.0.0, base-4.15.1.0, base-4.15.0.0 (has the same characteristics that
caused the previous version to fail: excluded by constraint '^>=4.14' from
'exercises')
[__1] rejecting: base-4.14.3.0, base-4.14.2.0, base-4.14.1.0, base-4.14.0.0,
base-4.13.0.0, base-4.12.0.0, base-4.11.1.0, base-4.11.0.0, base-4.10.1.0,
base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0,
base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1,
base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0,
base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0,
base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from
non-upgradeable package requires installed instance)
[__1] fail (backjumping, conflict set: base, exercises)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, exercises

make: *** [build] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.