Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 1eafe35

Browse files
committed
Make it so!
0 parents  commit 1eafe35

File tree

10 files changed

+220
-0
lines changed

10 files changed

+220
-0
lines changed

.github/workflows/ci.yml

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

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# cabal
2+
/dist
3+
/dist-*
4+
/cabal.project.local
5+
/.ghc.environment.*
6+
7+
# Stack
8+
/.stack-work/
9+
stack.yaml.lock
10+

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
install:
16+
# HLint check
17+
- curl -sSL https://raw.github.com/ndmitchell/neil/master/misc/travis.sh | sh -s -- hlint .
18+
19+
- |
20+
curl -sSL https://get.haskellstack.org/ | sh
21+
stack --version
22+
stack build \
23+
--test \
24+
--no-run-tests \
25+
--ghc-options=-Werror
26+
27+
script:
28+
- stack test

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
`hslua-module-paths` 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-paths/releases

LICENSE

Lines changed: 21 additions & 0 deletions
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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# hslua-module-paths
2+
3+
[![GitHub CI][CI badge]](https://github.com/hslua/hslua-module-paths/actions)
4+
[![Build status][Travis badge]](https://travis-ci.org/hslua/hslua-module-paths)
5+
[![Hackage][Hackage badge]](https://hackage.haskell.org/package/hslua-module-paths)
6+
[![Stackage Lts][Stackage Lts badge]](http://stackage.org/lts/package/hslua-module-paths)
7+
[![Stackage Nightly][Stackage Nightly badge]](http://stackage.org/nightly/package/hslua-module-paths)
8+
[![MIT license][License badge]](LICENSE)
9+
10+
Lua module to work with file paths.
11+
12+
[CI badge]: https://github.com/hslua/hslua-module-paths/workflows/CI/badge.svg
13+
[Travis badge]: https://img.shields.io/travis/hslua/hslua-module-paths.svg?logo=travis
14+
[Hackage badge]: https://img.shields.io/hackage/v/hslua-module-paths.svg?logo=haskell
15+
[Stackage Lts badge]: http://stackage.org/package/hslua-module-paths/badge/lts
16+
[Stackage Nightly badge]: http://stackage.org/package/hslua-module-paths/badge/nightly
17+
[License badge]: https://img.shields.io/badge/license-MIT-blue.svg

hslua-module-paths.cabal

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
cabal-version: 2.4
2+
name: hslua-module-paths
3+
version: 0.0.1
4+
synopsis: Lua module to work with file paths.
5+
description: Lua module to work with file paths.
6+
homepage: https://github.com/hslua/hslua-module-paths
7+
bug-reports: https://github.com/hslua/hslua-module-paths/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+
, GHC == 8.10.1
23+
24+
source-repository head
25+
type: git
26+
location: https://github.com/hslua/hslua-module-paths.git
27+
28+
common common-options
29+
build-depends: base >= 4.9.1.0
30+
31+
ghc-options: -Wall
32+
-Wcompat
33+
-Widentities
34+
-Wincomplete-uni-patterns
35+
-Wincomplete-record-updates
36+
if impl(ghc >= 8.0)
37+
ghc-options: -Wredundant-constraints
38+
if impl(ghc >= 8.2)
39+
ghc-options: -fhide-source-paths
40+
if impl(ghc >= 8.4)
41+
ghc-options: -Wmissing-export-lists
42+
-Wpartial-fields
43+
if impl(ghc >= 8.8)
44+
ghc-options: -Wmissing-deriving-strategies
45+
46+
default-language: Haskell2010
47+
48+
library
49+
import: common-options
50+
hs-source-dirs: src
51+
exposed-modules: HsluaModulePaths
52+
53+
test-suite hslua-module-paths-test
54+
import: common-options
55+
type: exitcode-stdio-1.0
56+
hs-source-dirs: test
57+
main-is: Spec.hs
58+
build-depends: hslua-module-paths
59+
ghc-options: -threaded
60+
-rtsopts
61+
-with-rtsopts=-N

src/HsluaModulePaths.hs

Lines changed: 15 additions & 0 deletions
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 to work with file paths.
7+
-}
8+
9+
module HsluaModulePaths
10+
( someFunc
11+
) where
12+
13+
14+
someFunc :: IO ()
15+
someFunc = putStrLn ("someFunc" :: String)

stack.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resolver: lts-15.5

test/Spec.hs

Lines changed: 5 additions & 0 deletions
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)