From 3624c712d72d246f21d4e710cec7c11e052e0326 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 9 Dec 2025 16:32:32 +0100 Subject: Add the haskell book --- Haskell-book/06/src/Ex.purs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Haskell-book/06/src/Ex.purs (limited to 'Haskell-book/06/src/Ex.purs') diff --git a/Haskell-book/06/src/Ex.purs b/Haskell-book/06/src/Ex.purs new file mode 100644 index 0000000..290ad8e --- /dev/null +++ b/Haskell-book/06/src/Ex.purs @@ -0,0 +1,9 @@ +module Ex where + +import Prelude + +-- +-- Type-Kwon-Do Two: Electric Typealoo +-- +chk :: forall a b. Eq b => (a -> b) -> a -> b -> Boolean +chk f a b = (f a) == b -- cgit v1.2.3