hdf5-lite 0.1.0.0 → 0.1.1.0
raw patch · 2 files changed
+16/−2 lines, 2 files
Files
- hdf5-lite.cabal +5/−2
- src/Data/HDF5/Store.hs +11/−0
hdf5-lite.cabal view
@@ -1,6 +1,6 @@ name: hdf5-lite-version: 0.1.0.0-synopsis: Bindings to the HDF5 "lite" interface+version: 0.1.1.0+synopsis: High-level bindings to the HDF5 "lite" interface description: This library wraps the simplified ("lite") interface to the HDF5 data format. homepage: https://github.com/ocramz/hdf5-lite license: BSD3@@ -34,6 +34,9 @@ , template-haskell , vector -- , bytestring+ build-tools: c2hs -any+ extra-libraries: hdf5+ extra-lib-dirs: /usr/local/hdf5/lib test-suite spec default-language: Haskell2010
src/Data/HDF5/Store.hs view
@@ -21,6 +21,17 @@ +data Dataset a = DS {+ dsSize :: [Hsize]+ , dsData :: VS.Vector a+ } deriving (Eq, Show)++class Storable a => StorableDS a where+ makeDS :: Hid -> String -> Dataset a -> IO ()+ readDS :: Hid -> String -> IO (Dataset a)+++ -- from https://github.com/ian-ross/hnetcdf/blob/master/Data/NetCDF/Store.hs