Skip to content

Instantly share code, notes, and snippets.

@berdario
Last active August 29, 2015 14:19
Show Gist options
  • Save berdario/402d529b1874d4afd04b to your computer and use it in GitHub Desktop.
Save berdario/402d529b1874d4afd04b to your computer and use it in GitHub Desktop.
module Hello where
data JodaYears = native org.joda.time.Years where
pure native years org.joda.time.Years.years :: Int -> JodaYears
pure native getYears :: JodaYears -> Int
main _ = println $ JodaYears.getYears $ JodaYears.years 5
(defproject example "0.1.0-SNAPSHOT"
:description "Example Clojure / Frege mixed language application"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[com.theoryinpractise.frege/frege "3.22.367-g2737683"]
[joda-time/joda-time "2.7"]]
:plugins [[lein-fregec "3.22.367-i"]]
:frege-source-paths ["src"]
:main Hello
:profiles {:uberjar {:prep-tasks ["fregec" "compile"]}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment