geojson: A thin GeoJSON Layer above the json library

[ bsd3, data, library ] [ Propose Tags ]
This version is deprecated.

A thin GeoJSON Layer above the json library.

It currently conforms to version 1.0 of the GeoJSON spec which can be found here:

http://geojson.org/geojson-spec.html

Its built on top of the json library and doesn't currently take advantage of laziness as much as it could, so those are areas for improvement


[Skip to Readme]

Modules

[Index]

Flags

Automatic Flags
NameDescriptionDefault
small_base

Choose the new, split-up base package.

Enabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.1, 0.0.2, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 2.0.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.1.0, 4.1.1 (info)
Dependencies aeson (>=0.7 && <0.8), base (>=4 && <5), lens (>=4.1 && <4.2), text (>=1.1 && <1.2) [details]
License BSD-3-Clause
Copyright Copyright (C) 2013-2014
Author Dom De Re
Maintainer Dom De Re
Category Data
Home page https://github.com/domdere/hs-geojson/issues
Bug tracker https://github.com/domdere/hs-geojson/issues
Source repo head: git clone https://github.com/domdere/hs-geojson.git
this: git clone https://github.com/domdere/hs-geojson.git(tag 0.0.2)
Uploaded by domdere at 2014-04-01T11:16:37Z
Distributions LTSHaskell:4.1.1, NixOS:4.1.1
Reverse Dependencies 5 direct, 8 indirect [details]
Downloads 14125 total (80 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Successful builds reported [all 1 reports]

Readme for geojson-1.0.0

[back to package description]

geojson Build Status Hackage

A thin GeoJSON Layer above the aeson library

Building the project

Install the dependencies with:

cabal install --dependencies-only

Optionally add --enable-tests if you intend to run the unit tests

The project must be "configured" at least once everytime geojson.cabal changes, this can be done with:

cabal configure

If you wish to run the unit tests you will have to run:

cabal configure --enable-tests

Then finally build it with:

cabal build

See cabal build --help for more build options.

Running Unit Tests

After running cabal build, you can run the unit tests with the command:

cabal test

Adding Unit tests

Unit tests are written with [doctest] doctest-github, for instructions on how to add unit tests see the doctest [User Guide] doctest-userguide.

Currently only files in the src/ directory are searched for tests, it is assumed that the code in main/ is a thin layer of code that uses modules from src/.

Development: Cabal Dependency Hell?

Cabal's great, but when you are developing a few different projects with their own dependency chains, sometimes installing all your libraries to the same place causes problems,

Consider trying [cabal-dev] cabal-dev. In terms of using it, all thats required is replacing cabal with cabal-dev in all the above command lines.

It will download and install all the dependencies for your project and install them in a cabal-dev/ directory in your project directory, and they will only be used for this project.

Those with newer versions of cabal (>= 1.18 I think) can skip cabal-dev and instead run cabal sandbox init, and just start runnign the above instructions as is from cabal install --only-dependencies