Skip to content

Commit c282b6f

Browse files
committed
Make it so! πŸš€β˜†
0 parents  commit c282b6f

11 files changed

+289
-0
lines changed

β€Ž.github/workflows/ci.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
# Trigger the workflow on push or pull request, but only for the master branch
4+
on:
5+
pull_request:
6+
push:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
name: ghc ${{ matrix.ghc }}
12+
runs-on: ubuntu-16.04
13+
strategy:
14+
matrix:
15+
cabal: ["2.4"]
16+
ghc:
17+
- "8.0.2"
18+
- "8.2.2"
19+
- "8.4.4"
20+
- "8.6.5"
21+
- "8.8.3"
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'
26+
27+
- uses: actions/setup-haskell@v1
28+
name: Setup Haskell
29+
with:
30+
ghc-version: ${{ matrix.ghc }}
31+
cabal-version: ${{ matrix.cabal }}
32+
33+
- uses: actions/cache@v1
34+
name: Cache ~/.cabal/store
35+
with:
36+
path: ~/.cabal/store
37+
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal
38+
39+
- name: Build
40+
run: |
41+
cabal v2-update
42+
cabal v2-build --enable-tests --enable-benchmarks
43+
44+
- name: Test
45+
run: |
46+
cabal v2-test --enable-tests

β€Ž.gitignore

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
### Haskell
2+
dist
3+
dist-*
4+
cabal-dev
5+
*.o
6+
*.hi
7+
*.chi
8+
*.chs.h
9+
*.dyn_o
10+
*.dyn_hi
11+
*.prof
12+
*.aux
13+
*.hp
14+
*.eventlog
15+
.virtualenv
16+
.hsenv
17+
.hpc
18+
.cabal-sandbox/
19+
cabal.sandbox.config
20+
cabal.config
21+
cabal.project.local
22+
.ghc.environment.*
23+
.HTF/
24+
# Stack
25+
.stack-work/
26+
stack.yaml.lock
27+
28+
### IDE/support
29+
# Vim
30+
[._]*.s[a-v][a-z]
31+
[._]*.sw[a-p]
32+
[._]s[a-v][a-z]
33+
[._]sw[a-p]
34+
*~
35+
tags
36+
37+
# IntellijIDEA
38+
.idea/
39+
.ideaHaskellLib/
40+
*.iml
41+
42+
# Atom
43+
.haskell-ghc-mod.json
44+
45+
# VS
46+
.vscode/
47+
48+
# Emacs
49+
*#
50+
.dir-locals.el
51+
TAGS
52+
53+
# other
54+
.DS_Store

β€Ž.travis.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
sudo: true
2+
language: haskell
3+
4+
git:
5+
depth: 5
6+
7+
cabal: "2.4"
8+
9+
cache:
10+
directories:
11+
- "$HOME/.cabal/store"
12+
- "$HOME/.stack"
13+
- "$TRAVIS_BUILD_DIR/.stack-work"
14+
15+
matrix:
16+
include:
17+
- ghc: 8.8.3
18+
env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
19+
20+
install:
21+
# HLint check
22+
- curl -sSL https://raw.github.com/ndmitchell/neil/master/misc/travis.sh | sh -s -- hlint .
23+
24+
- |
25+
curl -sSL https://get.haskellstack.org/ | sh
26+
stack --version
27+
stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --ghc-options=-Werror
28+
29+
script:
30+
- >-
31+
stack test --system-ghc

β€ŽCHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
`hslua-module-doclayout` uses [PVP Versioning][1].
4+
The changelog is available [on GitHub][2].
5+
6+
## 0.0.0.0
7+
8+
* Initially created.
9+
10+
[1]: https://pvp.haskell.org
11+
[2]: https://github.com/hslua/hslua-module-doclayout/releases

β€ŽLICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Albert Krewinkel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

β€ŽREADME.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# hslua-module-doclayout
2+
3+
[![GitHub CI](https://github.com/hslua/hslua-module-doclayout/workflows/CI/badge.svg)](https://github.com/hslua/hslua-module-doclayout/actions)
4+
[![Build status](https://img.shields.io/travis/hslua/hslua-module-doclayout.svg?logo=travis)](https://travis-ci.org/hslua/hslua-module-doclayout)
5+
[![Windows build status](https://ci.appveyor.com/api/projects/status/github/hslua/hslua-module-doclayout?branch=master&svg=true)](https://ci.appveyor.com/project/hslua/hslua-module-doclayout)
6+
[![Hackage](https://img.shields.io/hackage/v/hslua-module-doclayout.svg?logo=haskell)](https://hackage.haskell.org/package/hslua-module-doclayout)
7+
[![Stackage Lts](http://stackage.org/package/hslua-module-doclayout/badge/lts)](http://stackage.org/lts/package/hslua-module-doclayout)
8+
[![Stackage Nightly](http://stackage.org/package/hslua-module-doclayout/badge/nightly)](http://stackage.org/nightly/package/hslua-module-doclayout)
9+
[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
10+
11+
Lua module wrapping Text.DocLayout.

β€Žappveyor.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
clone_folder: "c:\\WORK"
2+
clone_depth: 5
3+
4+
# Do not build feature branch with open Pull Requests
5+
skip_branch_with_pr: true
6+
7+
platform:
8+
- x86_64
9+
10+
cache:
11+
- "C:\\SR"
12+
- dist-newstyle
13+
14+
environment:
15+
global:
16+
CABOPTS: --store-dir=C:\\SR
17+
18+
matrix:
19+
- GHCVER: 8.8.3
20+
21+
install:
22+
- choco source add -n mistuke -s https://www.myget.org/F/mistuke/api/v2
23+
- choco install -y cabal --version 2.4.1.0
24+
- choco install -y ghc --version 8.8.3
25+
- refreshenv
26+
27+
before_build:
28+
- cabal --version
29+
- ghc --version
30+
- cabal %CABOPTS% v2-update
31+
32+
build_script:
33+
- cabal %CABOPTS% v2-build --enable-tests
34+
- cabal %CABOPTS% v2-test --enable-tests

β€Žhslua-module-doclayout.cabal

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
cabal-version: 2.4
2+
name: hslua-module-doclayout
3+
version: 0.0.0.0
4+
synopsis: Lua module wrapping Text.DocLayout.
5+
description: Lua module wrapping Text.DocLayout.
6+
homepage: https://github.com/hslua/hslua-module-doclayout
7+
bug-reports: https://github.com/hslua/hslua-module-doclayout/issues
8+
license: MIT
9+
license-file: LICENSE
10+
author: Albert Krewinkel
11+
maintainer: Albert Krewinkel <[email protected]>
12+
copyright: 2020 Albert Krewinkel
13+
category: Foreign
14+
build-type: Simple
15+
extra-doc-files: README.md
16+
CHANGELOG.md
17+
tested-with: GHC == 8.0.2
18+
GHC == 8.2.2
19+
GHC == 8.4.4
20+
GHC == 8.6.5
21+
GHC == 8.8.3
22+
23+
source-repository head
24+
type: git
25+
location: https://github.com/hslua/hslua-module-doclayout.git
26+
27+
common common-options
28+
build-depends: base >= 4.9.1.0 && < 4.14
29+
30+
ghc-options: -Wall
31+
-Wcompat
32+
-Widentities
33+
-Wincomplete-uni-patterns
34+
-Wincomplete-record-updates
35+
if impl(ghc >= 8.0)
36+
ghc-options: -Wredundant-constraints
37+
if impl(ghc >= 8.2)
38+
ghc-options: -fhide-source-paths
39+
if impl(ghc >= 8.4)
40+
ghc-options: -Wmissing-export-lists
41+
-Wpartial-fields
42+
if impl(ghc >= 8.8)
43+
ghc-options: -Wmissing-deriving-strategies
44+
45+
default-language: Haskell2010
46+
47+
library
48+
import: common-options
49+
hs-source-dirs: src
50+
exposed-modules: HsluaModuleDoclayout
51+
52+
test-suite hslua-module-doclayout-test
53+
import: common-options
54+
type: exitcode-stdio-1.0
55+
hs-source-dirs: test
56+
main-is: Spec.hs
57+
build-depends: hslua-module-doclayout
58+
ghc-options: -threaded
59+
-rtsopts
60+
-with-rtsopts=-N

β€Žsrc/HsluaModuleDoclayout.hs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{- |
2+
Copyright: (c) 2020 Albert Krewinkel
3+
SPDX-License-Identifier: MIT
4+
Maintainer: Albert Krewinkel <[email protected]>
5+
6+
Lua module wrapping Text.DocLayout.
7+
-}
8+
9+
module HsluaModuleDoclayout
10+
( someFunc
11+
) where
12+
13+
14+
someFunc :: IO ()
15+
someFunc = putStrLn ("someFunc" :: String)

β€Žstack.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolver: lts-15.5

β€Žtest/Spec.hs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module Main (main) where
2+
3+
4+
main :: IO ()
5+
main = putStrLn ("Test suite is not implemented" :: String)

0 commit comments

Comments
Β (0)