diff options
author | Volpeon <github@volpeon.ink> | 2024-01-04 11:00:59 +0100 |
---|---|---|
committer | Volpeon <github@volpeon.ink> | 2024-01-04 11:00:59 +0100 |
commit | c1bbd059ff94e539512a38f3cad0fcb5b4964e65 (patch) | |
tree | 8d20359f19316f3cb567ac5feffdb44388228a36 | |
parent | Update (diff) | |
download | hs-jsonld-c1bbd059ff94e539512a38f3cad0fcb5b4964e65.tar.gz hs-jsonld-c1bbd059ff94e539512a38f3cad0fcb5b4964e65.tar.bz2 hs-jsonld-c1bbd059ff94e539512a38f3cad0fcb5b4964e65.zip |
Remove Stack
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | CHANGELOG.md | 12 | ||||
-rw-r--r-- | LICENSE | 30 | ||||
-rw-r--r-- | Setup.hs | 2 | ||||
-rw-r--r-- | jsonld.cabal | 252 | ||||
-rw-r--r-- | package.yaml | 80 | ||||
-rw-r--r-- | src/Data/JLD/Compaction/Compaction.hs | 1 | ||||
-rw-r--r-- | src/Data/JLD/Compaction/Global.hs | 3 | ||||
-rw-r--r-- | stack.yaml | 68 | ||||
-rw-r--r-- | stack.yaml.lock | 20 |
10 files changed, 130 insertions, 340 deletions
@@ -1,4 +1,4 @@ | |||
1 | .stack-work/ | 1 | dist-newstyle/ |
2 | *~ | 2 | *~ |
3 | 3 | ||
4 | .vscode | 4 | .vscode |
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cae68f..57ab5a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
@@ -1,11 +1,5 @@ | |||
1 | # Changelog for `jsonld` | 1 | # Revision history for jsonld |
2 | 2 | ||
3 | All notable changes to this project will be documented in this file. | 3 | ## 0.1.0.0 -- YYYY-mm-dd |
4 | 4 | ||
5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | 5 | * First version. Released on an unsuspecting world. |
6 | and this project adheres to the | ||
7 | [Haskell Package Versioning Policy](https://pvp.haskell.org/). | ||
8 | |||
9 | ## Unreleased | ||
10 | |||
11 | ## 0.1.0.0 - YYYY-MM-DD | ||
diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 7c25811..0000000 --- a/LICENSE +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | Copyright Volpeon (c) 2023 | ||
2 | |||
3 | All rights reserved. | ||
4 | |||
5 | Redistribution and use in source and binary forms, with or without | ||
6 | modification, are permitted provided that the following conditions are met: | ||
7 | |||
8 | * Redistributions of source code must retain the above copyright | ||
9 | notice, this list of conditions and the following disclaimer. | ||
10 | |||
11 | * Redistributions in binary form must reproduce the above | ||
12 | copyright notice, this list of conditions and the following | ||
13 | disclaimer in the documentation and/or other materials provided | ||
14 | with the distribution. | ||
15 | |||
16 | * Neither the name of Volpeon nor the names of other | ||
17 | contributors may be used to endorse or promote products derived | ||
18 | from this software without specific prior written permission. | ||
19 | |||
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
24 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
25 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
26 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
27 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
28 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
30 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
diff --git a/Setup.hs b/Setup.hs deleted file mode 100644 index 9a994af..0000000 --- a/Setup.hs +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | import Distribution.Simple | ||
2 | main = defaultMain | ||
diff --git a/jsonld.cabal b/jsonld.cabal index a0c0c25..9b4cc18 100644 --- a/jsonld.cabal +++ b/jsonld.cabal | |||
@@ -1,138 +1,132 @@ | |||
1 | cabal-version: 1.12 | 1 | cabal-version: 2.4 |
2 | 2 | name: jsonld | |
3 | -- This file has been generated from package.yaml by hpack version 0.35.2. | 3 | version: 0.1.0.0 |
4 | -- | 4 | author: Volpeon |
5 | -- see: https://github.com/sol/hpack | 5 | maintainer: me@volpeon.ink |
6 | 6 | copyright: 2023 Volpeon | |
7 | name: jsonld | 7 | license: NONE |
8 | version: 0.1.0.0 | ||
9 | description: Please see the README on GitHub at <https://git.vulpes.one/hs-jsonld/about/> | ||
10 | author: Volpeon | ||
11 | maintainer: me@volpeon.ink | ||
12 | copyright: 2023 Volpeon | ||
13 | license: BSD3 | ||
14 | license-file: LICENSE | ||
15 | build-type: Simple | ||
16 | extra-source-files: | 8 | extra-source-files: |
17 | README.md | 9 | README.md |
18 | CHANGELOG.md | 10 | CHANGELOG.md |
19 | 11 | ||
20 | source-repository head | 12 | source-repository head |
21 | type: git | 13 | type: git |
22 | location: https://git.vulpes.one/hs-jsonld/ | 14 | location: https://git.vulpes.one/hs-jsonld/ |
23 | 15 | ||
24 | library | 16 | library |
25 | exposed-modules: | 17 | exposed-modules: |
26 | Data.JLD | 18 | Data.JLD |
27 | Data.JLD.Compaction.Global | 19 | Data.JLD.Error |
28 | Data.JLD.Compaction.InverseContext | 20 | Data.JLD.Mime |
29 | Data.JLD.Compaction.IRI | 21 | Data.JLD.Model.ActiveContext |
30 | Data.JLD.Control.Monad.RES | 22 | Data.JLD.Model.Direction |
31 | Data.JLD.Error | 23 | Data.JLD.Model.GraphObject |
32 | Data.JLD.Expansion | 24 | Data.JLD.Model.InverseContext |
33 | Data.JLD.Expansion.Context | 25 | Data.JLD.Model.IRI |
34 | Data.JLD.Expansion.Global | 26 | Data.JLD.Model.Keyword |
35 | Data.JLD.Flattening | 27 | Data.JLD.Model.Language |
36 | Data.JLD.Flattening.Global | 28 | Data.JLD.Model.ListObject |
37 | Data.JLD.Flattening.NodeMap | 29 | Data.JLD.Model.NodeMap |
38 | Data.JLD.Mime | 30 | Data.JLD.Model.NodeObject |
39 | Data.JLD.Model.ActiveContext | 31 | Data.JLD.Model.TermDefinition |
40 | Data.JLD.Model.Direction | 32 | Data.JLD.Model.URI |
41 | Data.JLD.Model.GraphObject | 33 | Data.JLD.Model.ValueObject |
42 | Data.JLD.Model.InverseContext | 34 | Data.JLD.Options |
43 | Data.JLD.Model.IRI | 35 | Data.JLD.Prelude |
44 | Data.JLD.Model.Keyword | 36 | |
45 | Data.JLD.Model.Language | 37 | -- Modules included in this library but not exported. |
46 | Data.JLD.Model.ListObject | 38 | other-modules: |
47 | Data.JLD.Model.NodeMap | 39 | Data.JLD.Compaction.Compaction |
48 | Data.JLD.Model.NodeObject | 40 | Data.JLD.Compaction.Global |
49 | Data.JLD.Model.TermDefinition | 41 | Data.JLD.Compaction.InverseContext |
50 | Data.JLD.Model.URI | 42 | Data.JLD.Compaction.IRI |
51 | Data.JLD.Model.ValueObject | 43 | Data.JLD.Control.Monad.RES |
52 | Data.JLD.Options | 44 | Data.JLD.Expansion |
53 | Data.JLD.Prelude | 45 | Data.JLD.Expansion.Context |
54 | Data.JLD.Util | 46 | Data.JLD.Expansion.Global |
55 | other-modules: | 47 | Data.JLD.Flattening |
56 | Paths_jsonld | 48 | Data.JLD.Flattening.Global |
57 | hs-source-dirs: | 49 | Data.JLD.Flattening.NodeMap |
58 | src | 50 | Data.JLD.Util |
59 | default-extensions: | 51 | |
60 | BlockArguments | 52 | -- LANGUAGE extensions used by modules in this package. |
61 | FlexibleContexts | 53 | -- other-extensions: |
62 | ImportQualifiedPost | 54 | hs-source-dirs: src |
63 | LambdaCase | 55 | default-language: Haskell2010 |
64 | MultiWayIf | 56 | default-extensions: |
65 | NoImplicitPrelude | 57 | BlockArguments |
66 | OverloadedStrings | 58 | FlexibleContexts |
67 | RankNTypes | 59 | ImportQualifiedPost |
68 | RecordWildCards | 60 | LambdaCase |
69 | TupleSections | 61 | MultiWayIf |
70 | ViewPatterns | 62 | NoImplicitPrelude |
71 | ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wno-unticked-promoted-constructors -Wpartial-fields -Wredundant-constraints | 63 | OverloadedStrings |
72 | build-depends: | 64 | RankNTypes |
73 | aeson | 65 | RecordWildCards |
74 | , base >=4.7 && <5 | 66 | TupleSections |
75 | , containers | 67 | ViewPatterns |
76 | , flow | 68 | ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wno-unticked-promoted-constructors -Wpartial-fields -Wredundant-constraints |
77 | , indexed-traversable | 69 | build-depends: |
78 | , megaparsec | 70 | aeson |
79 | , modern-uri | 71 | , base ^>=4.17.2.1 |
80 | , mtl | 72 | , containers |
81 | , pretty-simple | 73 | , flow |
82 | , rdf4h | 74 | , indexed-traversable |
83 | , relude | 75 | , megaparsec |
84 | , req | 76 | , modern-uri |
85 | , tasty | 77 | , mtl |
86 | , tasty-expected-failure | 78 | , pretty-simple |
87 | , tasty-hunit | 79 | , rdf4h |
88 | , text | 80 | , relude |
89 | , transformers | 81 | , req |
90 | , vector | 82 | , tasty |
91 | , vector-algorithms | 83 | , tasty-expected-failure |
92 | default-language: Haskell2010 | 84 | , tasty-hunit |
85 | , text | ||
86 | , transformers | ||
87 | , vector | ||
88 | , vector-algorithms | ||
93 | 89 | ||
94 | test-suite jsonld-test | 90 | test-suite jsonld-test |
95 | type: exitcode-stdio-1.0 | 91 | type: exitcode-stdio-1.0 |
96 | main-is: Spec.hs | 92 | main-is: Spec.hs |
97 | other-modules: | 93 | other-modules: |
98 | Test.Common | 94 | Test.Common |
99 | Test.Expansion | 95 | Test.Expansion |
100 | Test.Flattening | 96 | Test.Flattening |
101 | Paths_jsonld | 97 | hs-source-dirs: test |
102 | hs-source-dirs: | 98 | default-language: Haskell2010 |
103 | test | 99 | default-extensions: |
104 | default-extensions: | 100 | BlockArguments |
105 | BlockArguments | 101 | FlexibleContexts |
106 | FlexibleContexts | 102 | ImportQualifiedPost |
107 | ImportQualifiedPost | 103 | LambdaCase |
108 | LambdaCase | 104 | MultiWayIf |
109 | MultiWayIf | 105 | NoImplicitPrelude |
110 | NoImplicitPrelude | 106 | OverloadedStrings |
111 | OverloadedStrings | 107 | RankNTypes |
112 | RankNTypes | 108 | RecordWildCards |
113 | RecordWildCards | 109 | TupleSections |
114 | TupleSections | 110 | ViewPatterns |
115 | ViewPatterns | 111 | ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wno-unticked-promoted-constructors -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N |
116 | ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wno-unticked-promoted-constructors -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N | 112 | build-depends: |
117 | build-depends: | 113 | aeson |
118 | aeson | 114 | , base ^>=4.17.2.1 |
119 | , base >=4.7 && <5 | 115 | , containers |
120 | , containers | 116 | , flow |
121 | , flow | 117 | , indexed-traversable |
122 | , indexed-traversable | 118 | , jsonld |
123 | , jsonld | 119 | , megaparsec |
124 | , megaparsec | 120 | , modern-uri |
125 | , modern-uri | 121 | , mtl |
126 | , mtl | 122 | , pretty-simple |
127 | , pretty-simple | 123 | , rdf4h |
128 | , rdf4h | 124 | , relude |
129 | , relude | 125 | , req |
130 | , req | 126 | , tasty |
131 | , tasty | 127 | , tasty-expected-failure |
132 | , tasty-expected-failure | 128 | , tasty-hunit |
133 | , tasty-hunit | 129 | , text |
134 | , text | 130 | , transformers |
135 | , transformers | 131 | , vector |
136 | , vector | 132 | , vector-algorithms |
137 | , vector-algorithms | ||
138 | default-language: Haskell2010 | ||
diff --git a/package.yaml b/package.yaml deleted file mode 100644 index adc0acb..0000000 --- a/package.yaml +++ /dev/null | |||
@@ -1,80 +0,0 @@ | |||
1 | name: jsonld | ||
2 | version: 0.1.0.0 | ||
3 | license: BSD3 | ||
4 | author: "Volpeon" | ||
5 | git: "https://git.vulpes.one/hs-jsonld/" | ||
6 | maintainer: "me@volpeon.ink" | ||
7 | copyright: "2023 Volpeon" | ||
8 | |||
9 | extra-source-files: | ||
10 | - README.md | ||
11 | - CHANGELOG.md | ||
12 | |||
13 | # Metadata used when publishing your package | ||
14 | # synopsis: Short description of your package | ||
15 | # category: Web | ||
16 | |||
17 | # To avoid duplicated efforts in documentation and dealing with the | ||
18 | # complications of embedding Haddock markup inside cabal files, it is | ||
19 | # common to point users to the README.md file. | ||
20 | description: Please see the README on GitHub at <https://git.vulpes.one/hs-jsonld/about/> | ||
21 | |||
22 | dependencies: | ||
23 | - base >= 4.7 && < 5 | ||
24 | - aeson | ||
25 | - containers | ||
26 | - flow | ||
27 | - indexed-traversable | ||
28 | - megaparsec | ||
29 | - modern-uri | ||
30 | - mtl | ||
31 | - pretty-simple | ||
32 | - rdf4h | ||
33 | - relude | ||
34 | - req | ||
35 | - tasty | ||
36 | - tasty-expected-failure | ||
37 | - tasty-hunit | ||
38 | - text | ||
39 | - transformers | ||
40 | - vector | ||
41 | - vector-algorithms | ||
42 | |||
43 | default-extensions: | ||
44 | - BlockArguments | ||
45 | - FlexibleContexts | ||
46 | - ImportQualifiedPost | ||
47 | - LambdaCase | ||
48 | - MultiWayIf | ||
49 | - NoImplicitPrelude | ||
50 | - OverloadedStrings | ||
51 | - RankNTypes | ||
52 | - RecordWildCards | ||
53 | - TupleSections | ||
54 | - ViewPatterns | ||
55 | |||
56 | ghc-options: | ||
57 | - -Wall | ||
58 | - -Wcompat | ||
59 | - -Widentities | ||
60 | - -Wincomplete-record-updates | ||
61 | - -Wincomplete-uni-patterns | ||
62 | - -Wmissing-export-lists | ||
63 | - -Wmissing-home-modules | ||
64 | - -Wno-unticked-promoted-constructors | ||
65 | - -Wpartial-fields | ||
66 | - -Wredundant-constraints | ||
67 | |||
68 | library: | ||
69 | source-dirs: src | ||
70 | |||
71 | tests: | ||
72 | jsonld-test: | ||
73 | main: Spec.hs | ||
74 | source-dirs: test | ||
75 | ghc-options: | ||
76 | - -threaded | ||
77 | - -rtsopts | ||
78 | - -with-rtsopts=-N | ||
79 | dependencies: | ||
80 | - jsonld | ||
diff --git a/src/Data/JLD/Compaction/Compaction.hs b/src/Data/JLD/Compaction/Compaction.hs new file mode 100644 index 0000000..678db84 --- /dev/null +++ b/src/Data/JLD/Compaction/Compaction.hs | |||
@@ -0,0 +1 @@ | |||
module Data.JLD.Compaction.Compaction where | |||
diff --git a/src/Data/JLD/Compaction/Global.hs b/src/Data/JLD/Compaction/Global.hs index 76b2db7..e4938e8 100644 --- a/src/Data/JLD/Compaction/Global.hs +++ b/src/Data/JLD/Compaction/Global.hs | |||
@@ -7,7 +7,8 @@ import Data.JLD.Options (JLDVersion (..)) | |||
7 | 7 | ||
8 | type JLDCompactionT e m = ReaderT JLDCompactionEnv (ExceptT (JLDError e) m) | 8 | type JLDCompactionT e m = ReaderT JLDCompactionEnv (ExceptT (JLDError e) m) |
9 | 9 | ||
10 | newtype JLDCompactionEnv = JLDCompactionEnv | 10 | data JLDCompactionEnv = JLDCompactionEnv |
11 | { jldCompactionEnvProcessingMode :: JLDVersion | 11 | { jldCompactionEnvProcessingMode :: JLDVersion |
12 | , jldCompactionCompactArrays :: Bool | ||
12 | } | 13 | } |
13 | deriving (Show) | 14 | deriving (Show) |
diff --git a/stack.yaml b/stack.yaml deleted file mode 100644 index 5657fbc..0000000 --- a/stack.yaml +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | # This file was automatically generated by 'stack init' | ||
2 | # | ||
3 | # Some commonly used options have been documented as comments in this file. | ||
4 | # For advanced use and comprehensive documentation of the format, please see: | ||
5 | # https://docs.haskellstack.org/en/stable/yaml_configuration/ | ||
6 | |||
7 | # Resolver to choose a 'specific' stackage snapshot or a compiler version. | ||
8 | # A snapshot resolver dictates the compiler version and the set of packages | ||
9 | # to be used for project dependencies. For example: | ||
10 | # | ||
11 | # resolver: lts-3.5 | ||
12 | # resolver: nightly-2015-09-21 | ||
13 | # resolver: ghc-7.10.2 | ||
14 | # | ||
15 | # The location of a snapshot can be provided as a file or url. Stack assumes | ||
16 | # a snapshot provided as a file might change, whereas a url resource does not. | ||
17 | # | ||
18 | # resolver: ./custom-snapshot.yaml | ||
19 | # resolver: https://example.com/snapshots/2018-01-01.yaml | ||
20 | resolver: | ||
21 | url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/22.yaml | ||
22 | |||
23 | # User packages to be built. | ||
24 | # Various formats can be used as shown in the example below. | ||
25 | # | ||
26 | # packages: | ||
27 | # - some-directory | ||
28 | # - https://example.com/foo/bar/baz-0.0.2.tar.gz | ||
29 | # subdirs: | ||
30 | # - auto-update | ||
31 | # - wai | ||
32 | packages: | ||
33 | - . | ||
34 | # Dependency packages to be pulled from upstream that are not in the resolver. | ||
35 | # These entries can reference officially published versions as well as | ||
36 | # forks / in-progress versions pinned to a git hash. For example: | ||
37 | # | ||
38 | # extra-deps: | ||
39 | # - acme-missiles-0.3 | ||
40 | # - git: https://github.com/commercialhaskell/stack.git | ||
41 | # commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a | ||
42 | # | ||
43 | # extra-deps: [] | ||
44 | extra-deps: | ||
45 | - rdf4h-5.0.1 | ||
46 | # Override default flag values for local packages and extra-deps | ||
47 | # flags: {} | ||
48 | |||
49 | # Extra package databases containing global packages | ||
50 | # extra-package-dbs: [] | ||
51 | |||
52 | # Control whether we use the GHC we find on the path | ||
53 | # system-ghc: true | ||
54 | # | ||
55 | # Require a specific version of Stack, using version ranges | ||
56 | # require-stack-version: -any # Default | ||
57 | # require-stack-version: ">=2.9" | ||
58 | # | ||
59 | # Override the architecture used by Stack, especially useful on Windows | ||
60 | # arch: i386 | ||
61 | # arch: x86_64 | ||
62 | # | ||
63 | # Extra directories used by Stack for building | ||
64 | # extra-include-dirs: [/path/to/dir] | ||
65 | # extra-lib-dirs: [/path/to/dir] | ||
66 | # | ||
67 | # Allow a newer minor version of GHC than the snapshot specifies | ||
68 | # compiler-check: newer-minor | ||
diff --git a/stack.yaml.lock b/stack.yaml.lock deleted file mode 100644 index 40b7e41..0000000 --- a/stack.yaml.lock +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | # This file was autogenerated by Stack. | ||
2 | # You should not edit this file by hand. | ||
3 | # For more information, please see the documentation at: | ||
4 | # https://docs.haskellstack.org/en/stable/lock_files | ||
5 | |||
6 | packages: | ||
7 | - completed: | ||
8 | hackage: rdf4h-5.0.1@sha256:76ecd4aa6b536add8d7c6c13aedd3e028d492d0044f28dba9eb130cfed063fdc,6470 | ||
9 | pantry-tree: | ||
10 | sha256: 4c81222dbdb1a97adfb7f47421c404e6144c704e6806501d8e7d259f106b0fdd | ||
11 | size: 4230 | ||
12 | original: | ||
13 | hackage: rdf4h-5.0.1 | ||
14 | snapshots: | ||
15 | - completed: | ||
16 | sha256: dcf4fc28f12d805480ddbe8eb8c370e11db12f0461d0110a4240af27ac88d725 | ||
17 | size: 650255 | ||
18 | url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/22.yaml | ||
19 | original: | ||
20 | url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/22.yaml | ||