This commit is contained in:
Aleksey Uymanov 2021-02-24 11:44:45 +05:00
commit db6b2a0724
11 changed files with 140 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.stack-work

9
CHANGELOG.md Normal file
View File

@ -0,0 +1,9 @@
# Changelog
`compa4ek` uses [PVP Versioning][1].
## 0.0.0.0
* Initially created.
[1]: https://pvp.haskell.org

21
LICENSE Normal file
View File

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

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# compa4ek
[![Hackage](https://img.shields.io/hackage/v/compa4ek.svg?logo=haskell)](https://hackage.haskell.org/package/compa4ek)
[![Stackage Lts](http://stackage.org/package/compa4ek/badge/lts)](http://stackage.org/lts/package/compa4ek)
[![Stackage Nightly](http://stackage.org/package/compa4ek/badge/nightly)](http://stackage.org/nightly/package/compa4ek)
[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
Compatibility checker for OpenAPI

7
app/Main.hs Normal file
View File

@ -0,0 +1,7 @@
module Main (main) where
import Compa4ek (someFunc)
main :: IO ()
main = someFunc

60
compa4ek.cabal Normal file
View File

@ -0,0 +1,60 @@
cabal-version: 2.4
name: compa4ek
version: 0.0.0.0
synopsis: Compatibility checker for OpenAPI
description: Compatibility checker for OpenAPI
license: MIT
license-file: LICENSE
author: Aleksey Uymanov
maintainer: Aleksey Uymanov <s9gf4ult@gmail.com>
copyright: 2021 Aleksey Uymanov
category: Web
build-type: Simple
extra-doc-files: README.md
CHANGELOG.md
tested-with: GHC == 8.6.5
GHC == 8.8.3
common common-options
build-depends: base >= 4.12.0.0 && < 4.14
ghc-options: -Wall
-Wcompat
-Widentities
-Wincomplete-uni-patterns
-Wincomplete-record-updates
if impl(ghc >= 8.0)
ghc-options: -Wredundant-constraints
if impl(ghc >= 8.2)
ghc-options: -fhide-source-paths
if impl(ghc >= 8.4)
ghc-options: -Wmissing-export-lists
-Wpartial-fields
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
default-language: Haskell2010
library
import: common-options
hs-source-dirs: src
exposed-modules: Compa4ek
executable compa4ek
import: common-options
hs-source-dirs: app
main-is: Main.hs
build-depends: compa4ek
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N
test-suite compa4ek-test
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
build-depends: compa4ek
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N

15
src/Compa4ek.hs Normal file
View File

@ -0,0 +1,15 @@
{- |
Copyright: (c) 2021 Aleksey Uymanov
SPDX-License-Identifier: MIT
Maintainer: Aleksey Uymanov <s9gf4ult@gmail.com>
Compatibility checker for OpenAPI
-}
module Compa4ek
( someFunc
) where
someFunc :: IO ()
someFunc = putStrLn ("someFunc" :: String)

1
stack-8.6.5.yaml Normal file
View File

@ -0,0 +1 @@
resolver: lts-14.27

1
stack.yaml Normal file
View File

@ -0,0 +1 @@
resolver: lts-15.5

12
stack.yaml.lock Normal file
View File

@ -0,0 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files
packages: []
snapshots:
- completed:
size: 491372
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/15/5.yaml
sha256: 1b549cfff328040c382a70a84a2087aac8dab6d778bf92f32a93a771a1980dfc
original: lts-15.5

5
test/Spec.hs Normal file
View File

@ -0,0 +1,5 @@
module Main (main) where
main :: IO ()
main = putStrLn ("Test suite is not implemented" :: String)