-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split examples into their own cabal project.
- Loading branch information
Showing
22 changed files
with
167 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages: | ||
./ | ||
./examples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Revision history for sv-examples | ||
|
||
## 0.1.0.0 -- YYYY-mm-dd | ||
|
||
* First version. Released on an unsuspecting world. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Copyright (c) 2017-2018, Commonwealth Scientific and Industrial Research Organisation | ||
(CSIRO) ABN 41 687 119 230. | ||
|
||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided | ||
with the distribution. | ||
|
||
* Neither the name of George Wilson nor the names of other | ||
contributors may be used to endorse or promote products derived | ||
from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import Distribution.Simple | ||
main = defaultMain |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
"name", "age" | ||
"Frank", "30" | ||
"George", "25", """functional"" programmer" | ||
"Harry","32" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: sv-examples | ||
version: 0.1.0.0 | ||
synopsis: Examples of sv usage | ||
description: Examples of sv usage. This can be run as a test-suite | ||
homepage: https://github.com/qfpl/sv | ||
license: BSD3 | ||
license-file: LICENCE | ||
author: George Wilson | ||
maintainer: [email protected] | ||
copyright: | ||
category: Example | ||
build-type: Simple | ||
extra-source-files: ChangeLog.md | ||
, csv/species.csv | ||
, csv/ragged.csv | ||
, csv/concat.csv | ||
, csv/requote.csv | ||
, csv/requote.golden.csv | ||
, csv/tt-handicap.csv | ||
cabal-version: >=1.10 | ||
tested-with: GHC == 7.10.3 | ||
, GHC == 8.0.2 | ||
, GHC == 8.2.2 | ||
, GHC == 8.4.1 | ||
|
||
library | ||
exposed-modules: Data.Sv.Example.Concat | ||
, Data.Sv.Example.Ragged | ||
, Data.Sv.Example.Requote | ||
, Data.Sv.Example.Species | ||
, Data.Sv.Example.TableTennis | ||
build-depends: base >= 4.8 && < 4.11 | ||
, sv | ||
, bytestring >= 0.9.1.10 && < 0.11 | ||
, lens >= 4 && < 5 | ||
, parsers >= 0.12 && <0.13 | ||
, semigroupoids >= 5 && <6 | ||
, tasty >= 0.11 && < 0.12 | ||
, tasty-golden >= 2.3 && < 2.4 | ||
, text >= 1.0 && < 1.3 | ||
, time >= 1.6 && < 1.10 | ||
, trifecta >= 1.5 && < 1.8 | ||
hs-source-dirs: src | ||
default-language: Haskell2010 | ||
|
||
test-suite test | ||
type: exitcode-stdio-1.0 | ||
default-language: Haskell2010 | ||
hs-source-dirs: test | ||
main-is: test.hs | ||
build-depends: base >= 4.8 && < 4.11 | ||
, sv-examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import qualified Data.Sv.Example.Concat as Concat | ||
import qualified Data.Sv.Example.Ragged as Ragged | ||
import qualified Data.Sv.Example.Requote as Requote | ||
import qualified Data.Sv.Example.Species as Species | ||
import qualified Data.Sv.Example.TableTennis as TableTennis | ||
|
||
main :: IO () | ||
main = do | ||
Concat.main | ||
Ragged.main | ||
Requote.main | ||
Species.main | ||
TableTennis.main |
Oops, something went wrong.