summaryrefslogtreecommitdiff
path: root/ipynb.cabal
blob: d904da32eafa6384f050ff11fe48c5be9db3b3bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name:                ipynb
version:             0.2
x-revision: 1
synopsis:            Data structure for working with Jupyter notebooks (ipynb).
description:         ipynb defines a data structure for representing Jupyter
                     notebooks, along with ToJSON and FromJSON instances
                     for conversion to and from JSON .ipynb files.
license:             BSD3
license-file:        LICENSE
author:              John MacFarlane
maintainer:          jgm@berkeley.edu
copyright:           Copyright (C) 2019 John MacFarlane
category:            Text
build-type:          Simple
extra-source-files:  Changelog.md
                     test/rt-files/*.ipynb
cabal-version:       >=1.10
tested-with:         GHC == 8.2.2 || == 8.4.4 || == 8.6.5 ||
                         == 8.8.1 || == 8.10.4 || == 9.0.1

source-repository    head
  type:              git
  location:          https://github.com/jgm/ipynb.git

library
  exposed-modules:   Data.Ipynb
  build-depends:     base >= 4.8 && < 5,
                     containers >= 0.5.8,
                     unordered-containers,
                     base64-bytestring,
                     aeson >= 1.5.2.0,
                     bytestring,
                     text
  if impl(ghc < 8.0)
    build-depends:   semigroups == 0.18.*
  hs-source-dirs:    src
  default-language:  Haskell2010

test-suite roundtrip
  type:              exitcode-stdio-1.0
  main-is:           roundtrip.hs
  build-depends:     base,
                     ipynb,
                     filepath,
                     directory,
                     tasty,
                     tasty-hunit,
                     aeson,
                     bytestring,
                     microlens-aeson,
                     microlens,
                     text
  hs-source-dirs:    test
  default-language:  Haskell2010