Frege is now available via Homebrew

45 views
Skip to first unread message

James Earl Douglas

unread,
Sep 27, 2012, 2:25:01 PM9/27/12
to frege-program...@googlegroups.com
For developers on OSX, you can now install the latest Frege compiler
via Homebrew (http://mxcl.github.com/homebrew/):

$ brew install frege

Launching `fregec` from the command line will execute `exec java
-Xss1m -jar fregec.jar`, along with any arguments you supply. For
example:

$ echo 'package helloworld.HelloWorld where

import frege.IO

main :: [String] -> IO ()
main _ = print "Hello, world!"
' >> HelloWorld.fr

$ mkdir classes
$ fregec -d classes HelloWorld.fr

Remember to use Java 7, and enjoy!

James

Ingo W.

unread,
Sep 28, 2012, 1:48:42 PM9/28/12
to frege-program...@googlegroups.com
Great work, James.
Can't try it out because I don't have no Mac, though.

BTW, when was the last time I saw someone use echo as a program editor? Closest that comes to mind is "Evolution of a Programmer" where in some stage the source code is entered with cat >hello.c
:)

Regards, Ingo
Reply all
Reply to author
Forward
0 new messages