Home Program Haskell with Lisp Syntax Using Liskell or Lisk

Program Haskell with Lisp Syntax Using Liskell or Lisk

Do you code in Haskell, but dream of being able to use Lisp instead? If so, you may be in luck. There are no less than two projects dedicated to bringing Lisp’s syntax to Haskell: Liskell and Lisk. Although Liskell’s creator, Clemens Fruhwirth, claimed that the project isn’t dead yet, updates have been slow. Lisk is a work in progress by Chris Done that aims to fix Done’s gripes with Liskell.

Here’s an example of Lisk code:

{-# OPTIONS -F -pgmF lisk #-}
(module :fibs
(import :system.environment)

(:: main (:i-o ()))

(= main (>>= get-args (. print fib read head)))

(:: test (-> :string (, :int :string)))

(= test (, 1))

(:: fib (-> :int :int))

(= fib 0 0)

(= fib 1 1)

(= fib n (+ (fib (- n 1))

(fib (- n 2)))))

However, nothing more is supported than what’s seen in the example above.

The issues with Liskell that Lisk aims to solve are:

  • You have to write (* a (* b c)). My solution above deals with that.
  • You have to write (Maybe a). My solution above deals with that.
  • You have to have a special patched version of a certain version GHC to run it. No one is going to want to install it and it’s going to be hard to maintain that.

If you can live with those issues, then Liskell may be right for you. Otherwise, you can check out Lisk’s progress at its Github repository.

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.