Coder Social home page Coder Social logo

1haskelladay's Introduction

1 Haskell A Day exercises

This project provides a git support for 1HaskellADay's exercises (see @1HaskellADay and the hashtag #1HaskellADay)

Getting started

  • Find an exercise in the exercises folder (there is one in the Exercise.hs file of each "leaf/date folder"). For example, the first one is in HAD\Y2014\M02\D24\Exercise.hs
  • Do it.
  • At the root of the project, run ghci.
  • check your answer with check. For example here: check =<< date 2014 2 24
  • compare your answer with the proposed one (in the Solution.hs file)

The 1had executable

If you install 1HaskellADay with cabal (cabal configure and then cabal install), you can use the 1had executable for an easier access to the tests and exercices.

1haskelladay's People

Contributors

1haskelladay avatar bazzargh avatar berewt avatar borkdude avatar geophf avatar jproyo avatar pierrer avatar raveline avatar tricoder42 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

1haskelladay's Issues

build-depends on versions of packages incompatible with modern base

~/prog$ git clone https://github.com/geophf/1HaskellADay.git
Cloning into '1HaskellADay'...
remote: Counting objects: 1902, done.
remote: Compressing objects: 100% (109/109), done.
remote: Total 1902 (delta 60), reused 0 (delta 0), pack-reused 1773
Receiving objects: 100% (1902/1902), 462.71 KiB | 0 bytes/s, done.
Resolving deltas: 100% (759/759), done.
Checking connectivity... done.
~/prog$ cd 1HaskellADay/
~/prog/1HaskellADay$ cabal sandbox init
Writing a default package environment file to
/home/username/prog/1HaskellADay/cabal.sandbox.config
Creating a new sandbox at /home/username/prog/1HaskellADay/.cabal-sandbox
~/prog/1HaskellADay$ cabal repl
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
trying: HAD-0.3.0.1 (user goal)
next goal: process (dependency of HAD-0.3.0.1)
rejecting: process-1.4.2.0/installed-1.4... (conflict: HAD => process==1.1.*)
Dependency tree exhaustively searched.
Trying configure anyway.
Configuring HAD-0.3.0.1...
cabal: Encountered missing dependencies:
QuickCheck >=2.6,
doctest ==0.9.*,
filepath ==1.3.*,
process ==1.1.*,
time ==1.4.*
~/prog/1HaskellADay$ cabal install --dependencies-only
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: base-4.9.0.0/installed-4.9... (dependency of HAD-0.3.0.1)
next goal: process (dependency of HAD-0.3.0.1)
rejecting: process-1.4.2.0/installed-1.4..., process-1.4.2.0, process-1.4.1.0,
process-1.4.0.0, process-1.3.0.0, process-1.2.3.0, process-1.2.2.0,
process-1.2.1.0, process-1.2.0.0 (conflict: HAD => process==1.1.*)
rejecting: process-1.1.0.2 (conflict: base==4.9.0.0/installed-4.9..., process
=> base>=4 && <4.7 || >=3 && <4)
trying: process-1.1.0.1
next goal: directory (dependency of process-1.1.0.1)
rejecting: directory-1.2.6.2/installed-1.2..., directory-1.2.7.0,
directory-1.2.6.3, directory-1.2.6.2, directory-1.2.5.1, directory-1.2.5.0,
directory-1.2.4.0, directory-1.2.3.1, directory-1.2.3.0, directory-1.2.2.1,
directory-1.2.2.0, directory-1.2.1.0, directory-1.2.0.1, directory-1.2.0.0
(conflict: process => directory>=1.0 && <1.2)
rejecting: directory-1.1.0.2 (conflict: base==4.9.0.0/installed-4.9...,
directory => base>=4.4 && <4.6)
rejecting: directory-1.1.0.1 (conflict: base==4.9.0.0/installed-4.9...,
directory => base>=4.2 && <4.5)
rejecting: directory-1.1.0.0, directory-1.0.1.2 (conflict:
base==4.9.0.0/installed-4.9..., directory => base>=4.2 && <4.4)
rejecting: directory-1.0.1.1, directory-1.0.1.0 (conflict:
base==4.9.0.0/installed-4.9..., directory => base>=4.1 && <4.3)
rejecting: directory-1.0.0.3, directory-1.0.0.0 (conflict:
base==4.9.0.0/installed-4.9..., directory => base<4.3)
rejecting: directory-1.2.6.1 (conflict: process => directory>=1.0 && <1.2)
Dependency tree exhaustively searched.

Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
~/prog/1HaskellADay$

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.