From bd06214e092bc53e5bb8b05afc8bc3420ff96886 Mon Sep 17 00:00:00 2001 From: ocramz Date: Fri, 28 Dec 2018 11:16:08 +0100 Subject: [PATCH] upd changelog --- datasets/changelog.md | 40 +++++++++++++---------- datasets/datasets.cabal | 4 +-- datasets/src/Numeric/Datasets.hs | 2 +- datasets/src/Numeric/Datasets/Mushroom.hs | 5 +-- 4 files changed, 29 insertions(+), 22 deletions(-) diff --git a/datasets/changelog.md b/datasets/changelog.md index 898f04b..363ecce 100644 --- a/datasets/changelog.md +++ b/datasets/changelog.md @@ -1,49 +1,55 @@ +0.3 + * 'datasets' hosted within the DataHaskell/dh-core project + + * Mushroom and Titanic datasets + + 0.2.5 -* Old faithful matches R dataset + * Old Faithful matches R dataset 0.2.4 -* Netflix dataset + * Netflix dataset -0.2.3 +0.2.3 -* Coal dataset + * Coal dataset -* New internal API + * New internal API -* Ord instance for IrisClass + * Ord instance for IrisClass 0.2.2 -* Enum, bounded instances for IrisClass + * Enum, bounded instances for IrisClass -* Gapminder dataset + * Gapminder dataset -* Use wreq for HTTP and HTTPS requests + * Use wreq for HTTP and HTTPS requests 0.2.1 -* Wine quality datasets + * Wine quality datasets -* Vocabulary, UN, States datasets + * Vocabulary, UN, States datasets -* CO2, Sunspots and Quakes datasets + * CO2, Sunspots and Quakes datasets 0.2.0.3 -* Further GHC portability + * Further GHC portability 0.2.0.2 -* Improve GHC portability + * Improve GHC portability 0.2.0.1 -* Bugfix: include embedded data files in cabal extra-source-files + * Bugfix: include embedded data files in cabal extra-source-files 0.2 -* iris dataset is a pure value (with file-embed) + * iris dataset is a pure value (with file-embed) -* Michelson, Nightingale and BostonHousing datasets + * Michelson, Nightingale and BostonHousing datasets diff --git a/datasets/datasets.cabal b/datasets/datasets.cabal index 10cdff2..e730e84 100644 --- a/datasets/datasets.cabal +++ b/datasets/datasets.cabal @@ -81,9 +81,9 @@ Library , Numeric.Datasets.WineQuality , Numeric.Datasets.Netflix Build-depends: - base >= 4.6 && < 5 + base >= 4.6 && < 5 , aeson - , attoparsec >= 0.13 + , attoparsec >= 0.13 , bytestring , cassava , directory diff --git a/datasets/src/Numeric/Datasets.hs b/datasets/src/Numeric/Datasets.hs index 05ae70e..8030769 100644 --- a/datasets/src/Numeric/Datasets.hs +++ b/datasets/src/Numeric/Datasets.hs @@ -124,7 +124,7 @@ jsonDataset :: FromJSON a => Source -> Dataset a jsonDataset src = Dataset src Nothing Nothing JSON -- | Get a ByteString from the specified Source -getFileFromSource :: FilePath -> Source -> IO (BL.ByteString) +getFileFromSource :: FilePath -> Source -> IO BL.ByteString getFileFromSource cacheDir (URL url) = do createDirectoryIfMissing True cacheDir let fnm = cacheDir "ds" <> show (hash url) diff --git a/datasets/src/Numeric/Datasets/Mushroom.hs b/datasets/src/Numeric/Datasets/Mushroom.hs index fcbddab..28d2a75 100644 --- a/datasets/src/Numeric/Datasets/Mushroom.hs +++ b/datasets/src/Numeric/Datasets/Mushroom.hs @@ -44,13 +44,14 @@ p,x,s,n,t,p,f,c,n,k,e,e,s,s,w,w,p,w,o,p,k,s,u e,x,s,y,t,a,f,c,b,k,e,c,s,s,w,w,p,w,o,p,n,n,g -} module Numeric.Datasets.Mushroom ( - MushroomEntry(..) + mushroomDatabase + , MushroomEntry(..) , CapShape(..), CapSurface(..), CapColor(..), Odor(..) , GillAttachment(..), GillSpacing(..), GillSize(..), GillColor(..), StalkShape(..) , StalkRoot(..), StalkSurfaceAboveRing(..), StalkSurfaceBelowRing(..) , StalkColorAboveRing(..), StalkColorBelowRing(..), VeilType(..), VeilColor(..) , RingNumber(..), RingType(..), SporePrintColor(..), Population(..), Habitat(..) - , mushroomDatabase) where + ) where import Numeric.Datasets