My first Eta program

2018-06-12

I’ve been reading up on Eta and thought I’d give it a try. Since I’ve started using IntelliJ to do more things, this seemed to make sense. The first thing to note is that Eta’s Haskell language implementation is essentially GHC’s, though I don’t remember which version it’s based on. Thus, the Haskell part of Eta is probably not interesting. I figured that the Java/JVM interop was the interesting bit. I followed the tutorial and wondered how easy or difficult it would be to pop open a window on the screen. This is the Java program I started with:

I was pleasantly surprised to find that I could translate this into Eta very easily and it took me less than ten minutes to do so:

That’s it for today!

Related posts

An algebraic data type in Scala

Tags

Haskell
Eta
Java
JVM

Content © 2024 Richard Cook. All rights reserved.