Sha256: 71d3968d820172330d247a1b67ce923f0d2b51d41f33f57c12b3fab596506423

Contents?: true

Size: 477 Bytes

Versions: 52

Compression:

Stored size: 477 Bytes

Contents

module Allergies (Allergen(..), allergies, isAllergicTo) where

data Allergen = Eggs
              | Peanuts
              | Shellfish
              | Strawberries
              | Tomatoes
              | Chocolate
              | Pollen
              | Cats
              deriving (Eq)

allergies :: Int -> [Allergen]
allergies = error "You need to implement this function."

isAllergicTo :: Allergen -> Int -> Bool
isAllergicTo = error "You need to implement this function."

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
trackler-2.0.8.18 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.17 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.16 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.15 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.14 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.13 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.12 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.11 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.10 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.9 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.8 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.7 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.6 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.5 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.4 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.3 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.2 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.8.1 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.7.0 tracks/haskell/exercises/allergies/src/Allergies.hs
trackler-2.0.6.44 tracks/haskell/exercises/allergies/src/Allergies.hs