Last active
August 29, 2015 14:19
-
-
Save berdario/402d529b1874d4afd04b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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