File: Bool.hs

package info (click to toggle)
haskell-bool-extras 0.4.0-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 72 kB
  • sloc: haskell: 65; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 129 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
module Bool where

import Data.Bool.Extras

yesOrNo :: Bool -> String
yesOrNo = bool "no" "yes"

main = putStrLn (yesOrNo True)