Skip to content

Commit

Permalink
Create the project
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickt committed Mar 27, 2020
0 parents commit 4c4b381
Show file tree
Hide file tree
Showing 8 changed files with 235 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Haskell CI

on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:

jobs:
build:
name: ghc ${{ matrix.ghc }}
runs-on: ubuntu-16.04
strategy:
matrix:
ghc: ["8.8.1"]
cabal: ["3.0"]

steps:
- uses: actions/checkout@v2
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'

- uses: actions/setup-haskell@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

# We cache the elements of the Cabal store separately,
# as the entirety of ~/.cabal can grow very large
# for projects with many dependencies.

- uses: actions/cache@v1
name: Cache ~/.cabal/packages
with:
path: ~/.cabal/packages
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-packages
- uses: actions/cache@v1
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal-store
- uses: actions/cache@v1
name: Cache dist-newstyle
with:
path: dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-fused-effects-dist

- name: Install dependencies
run: |
cabal new-update
cabal new-configure --enable-tests --write-ghc-environment-files=always -j2
cabal new-build --only-dependencies
- name: Build & test
run: |
cabal v2-build
cabal new-test --enable-tests
54 changes: 54 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
### Haskell
dist
dist-*
cabal-dev
*.o
*.hi
*.chi
*.chs.h
*.dyn_o
*.dyn_hi
*.prof
*.aux
*.hp
*.eventlog
.virtualenv
.hsenv
.hpc
.cabal-sandbox/
cabal.sandbox.config
cabal.config
cabal.project.local
.ghc.environment.*
.HTF/
# Stack
.stack-work/
stack.yaml.lock

### IDE/support
# Vim
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
*~
tags

# IntellijIDEA
.idea/
.ideaHaskellLib/
*.iml

# Atom
.haskell-ghc-mod.json

# VS
.vscode/

# Emacs
*#
.dir-locals.el
TAGS

# other
.DS_Store
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog

`fused-effects-async` uses [PVP Versioning][1].
The changelog is available [on GitHub][2].

## 0.0.0.0

* Initially created.

[1]: https://pvp.haskell.org
[2]: https://github.com/patrickt/fused-effects-async/releases
29 changes: 29 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2020, Patrick Thomson
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. 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.

3. Neither the name of the copyright holder nor the names of its
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 HOLDER 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.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# fused-effects-async

[![Hackage](https://img.shields.io/hackage/v/fused-effects-async.svg?logo=haskell)](https://hackage.haskell.org/package/fused-effects-async)
[![BSD3 license](https://img.shields.io/badge/license-BSD3-blue.svg)](LICENSE)

Fused-effects wrappers for async and concurrent execution of IO actions.
67 changes: 67 additions & 0 deletions fused-effects-async.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
cabal-version: 2.0
name: fused-effects-async
version: 0.0.0.0
synopsis: Fused-effects wrappers for async and concurrent execution of IO actions.
description: Fused-effects wrappers for async and concurrent execution of IO actions.
homepage: https://github.com/patrickt/fused-effects-async
bug-reports: https://github.com/patrickt/fused-effects-async/issues
license: BSD3
license-file: LICENSE
author: Patrick Thomson
maintainer: [email protected]
copyright: 2020 Patrick Thomson
category: Control
build-type: Simple
extra-doc-files: README.md
, CHANGELOG.md
tested-with: GHC == 8.8.1

source-repository head
type: git
location: https://github.com/patrickt/fused-effects-async.git

library
hs-source-dirs: src
exposed-modules: FusedEffectsAsync


build-depends: base ^>= 4.13.0.0


ghc-options: -Wall
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wcompat
-Widentities
-Wredundant-constraints
-fhide-source-paths
-Wmissing-export-lists
-Wpartial-fields
-Wmissing-deriving-strategies

default-language: Haskell2010

test-suite fused-effects-async-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs

build-depends: base ^>= 4.13.0.0
, fused-effects-async


ghc-options: -Wall
-threaded
-rtsopts
-with-rtsopts=-N
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wcompat
-Widentities
-Wredundant-constraints
-fhide-source-paths
-Wmissing-export-lists
-Wpartial-fields
-Wmissing-deriving-strategies

default-language: Haskell2010
6 changes: 6 additions & 0 deletions src/FusedEffectsAsync.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module FusedEffectsAsync
( someFunc
) where

someFunc :: IO ()
someFunc = putStrLn ("someFunc" :: String)
4 changes: 4 additions & 0 deletions test/Spec.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Main (main) where

main :: IO ()
main = putStrLn ("Test suite not yet implemented" :: String)

0 comments on commit 4c4b381

Please sign in to comment.