Skip to content

Mirror of an example project for CI/CD Sprintwoche of SCDH, written in Haskell.

License

Notifications You must be signed in to change notification settings

SCDH/sprintwoche-cicd-palindrome-check-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

palindrome-check

Example project for CI/CD Sprintwoche of SCDH, written in Haskell.

import Palindrome

isPalindrome "racecar"    -- True
isPalindrome "()()"       -- False
isPalindrome [1,2,3,2,1]  -- True
isPalindrome []           -- True
isPalindrome "a"          -- True

Build dependencies and the library

This is a standard GHC/cabal project. Get GHC and cabal via ghcup.

$ cd palindrome-check
$ cabal build --only-dependencies
$ cabal build

Tests

This project has unit/property tests and doctests:

$ cabal test palindrome-test
$ cabal test doctest

Or run buth with cabal test.

Generate API docs

$ cabal haddock
Documentation created: [...]/doc/html/palindrome-check/

The API docs are also available on GitLab pages.

Releases

Package releases are continuously generated on tags named ^v[\d.]+$, for example v0.1.0.

Author and license

(c) 2025 Mirko Westermeier

Released under the MIT license. See LICENSE for details.

About

Mirror of an example project for CI/CD Sprintwoche of SCDH, written in Haskell.

Resources

License

Stars

Watchers

Forks