The xls package

[ Tags: bsd3, codec, data, library, parser, program, spreadsheet ] [ Propose Tags ]

Parse Microsoft Excel spreadsheet files in .xls file format (extension .xls) more specifically known as 'BIFF/Excel 97-2004'.

The library is based on the C library https://sourceforge.net/projects/libxls.


[Skip to Readme]

Properties

Versions 0.1.0
Dependencies base (==4.*), conduit (>=1.1 && <1.3), filepath (>=1.0 && <1.5), getopt-generics (>=0.11 && <0.14), resourcet (>=0.3 && <1.2), transformers (>=0.1 && <0.6), xls [details]
License BSD3
Copyright 2016 Harendra Kumar, 2004-2014 Authors of libxls
Author Harendra Kumar
Maintainer harendra.kumar@gmail.com
Category Codec, Data, Parser, Spreadsheet
Home page http://github.com/harendra-kumar/xls
Source repository head: git clone https://github.com/harendra-kumar/xls
Uploaded Fri Oct 14 15:38:10 UTC 2016 by harendra
Distributions NixOS:0.1.0
Executables xls2csv
Downloads 108 total (19 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-10-14 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Flags

NameDescriptionDefaultType
force-has-iconv

force using iconv library on Windows

DisabledManual

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for xls-0.1.0

[back to package description]

Haskell xls Parsing

Build Status Build status

xls is a Haskell library to parse Microsoft Excel spreadsheet files. It parses the xls file format (extension .xls) more specifically known as BIFF/Excel 97-2004.

It can be useful for mining data from old Microsoft Excel spreadsheets.

API

Use decodeXls to get a streaming Conduit. For example to convert an xls file to comma separated csv:

xlsToCSV :: String -> IO ()
xlsToCSV file =
      runResourceT
    $ decodeXls file
    $$ CL.mapM_ (liftIO . putStrLn . intercalate ",")

An xls2csv utility is shipped with the package. See the haddock documentation for the API details.

Under the hood

The library is based on the C library libxls, see sourceforge or github.

See Also

  • xlsior: Streaming Excel (xslx) file generation and parsing
  • xlsx: Excel xslx file parser/writer

Contributing

Welcome! If you would like to have something changed or added go ahead, raise an issue or send a pull request.