Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haskell implementation #18

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Haskell/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vscode/
.stack-work/
*~
2 changes: 2 additions & 0 deletions Haskell/Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain
4 changes: 4 additions & 0 deletions Haskell/app/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Main (main) where

main :: IO ()
main = undefined
67 changes: 67 additions & 0 deletions Haskell/package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: rsv
version: 1.3.0.0
github: "prosumma/hs-rsv"
license: MIT
author: "Gregory Higley"
maintainer: "greg@prosumma.com"
copyright: "2024 Gregory Higley"

# Metadata used when publishing your package
# synopsis: Short description of your package
# category: Web

# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/prosumma/hs-rsv#readme>

dependencies:
- base >= 4.7 && < 5
- base64-bytestring
- bytestring
- containers
- data-default
- mtl
- scientific
- text
- transformers
- uuid

ghc-options:
- -Wall
- -Wcompat
- -Widentities
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wmissing-export-lists
- -Wmissing-home-modules
- -Wno-name-shadowing
- -Wpartial-fields
- -Wredundant-constraints

library:
source-dirs: src

executables:
rsv-exe:
main: Main.hs
source-dirs: app
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- rsv

tests:
rsv-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- rsv
- hspec
- vector
86 changes: 86 additions & 0 deletions Haskell/rsv.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack

name: rsv
version: 1.3.0.0
description: Please see the README on GitHub at <https://github.com/prosumma/hs-rsv#readme>
homepage: https://github.com/prosumma/hs-rsv#readme
bug-reports: https://github.com/prosumma/hs-rsv/issues
author: Gregory Higley
maintainer: greg@prosumma.com
copyright: 2024 Gregory Higley
license: MIT
build-type: Simple

source-repository head
type: git
location: https://github.com/prosumma/hs-rsv

library
exposed-modules:
Data.RSV
other-modules:
Paths_rsv
hs-source-dirs:
src
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wno-name-shadowing -Wpartial-fields -Wredundant-constraints
build-depends:
base >=4.7 && <5
, base64-bytestring
, bytestring
, containers
, data-default
, mtl
, scientific
, text
, transformers
, uuid
default-language: Haskell2010

executable rsv-exe
main-is: Main.hs
other-modules:
Paths_rsv
hs-source-dirs:
app
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wno-name-shadowing -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
build-depends:
base >=4.7 && <5
, base64-bytestring
, bytestring
, containers
, data-default
, mtl
, rsv
, scientific
, text
, transformers
, uuid
default-language: Haskell2010

test-suite rsv-test
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Paths_rsv
hs-source-dirs:
test
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wno-name-shadowing -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N
build-depends:
base >=4.7 && <5
, base64-bytestring
, bytestring
, containers
, data-default
, hspec
, mtl
, rsv
, scientific
, text
, transformers
, uuid
, vector
default-language: Haskell2010
Loading