Skip to content

A complete palindrome checker library, written entirely in Haskell.

License

Notifications You must be signed in to change notification settings

evandertino/palindrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

palindrome

A complete palindrome checker library, written entirely in Haskell

Tests included.

Usage

  {-# LANGUAGE OverloadedStrings #-}

  module Main where

  import Data.Text as T
  import Data.Text.IO as TIO
  import Palindrome (isPalindrome)

  main :: IO ()
  main = do
    TIO.putStrLn "Enter a word, and i will tell you if its a palindrome or not"
    text <- TIO.getLine
    let response = if isPalindrome text then "it is!" else "it's not!"
    TIO.putStrLn response

Enjoy!

About

A complete palindrome checker library, written entirely in Haskell.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published