An optional type system for Clojure, based on Typed Clojure.
Fort is separated into modules. You'll want the full type checker at development time, and the runtime dependencies in production.
In Clojure CLI's deps.edn
, this will look something like this:
{:deps {fort.clj/runtime {:mvn/version "0.0.0"}}
:aliases {:dev {:extra-deps {fort.clj/checker {:mvn/version "0.0.0"}}}}}
You can then start a dev repl with clj -A:dev
.
In Leiningen's project.clj
, something like this:
(defproject a-project "0.0.1-SNAPSHOT"
:dependencies [[fort.clj/runtime "0.0.0"]]
:profiles {:dev {:dependencies [[fort.clj/checker "0.0.0"]]}})
Then, lein repl
will automatically activate the :dev
profile. Verify the type
checker is not included in uberjars with lein with-profile uberjar deps :tree
.
Latest stable release is 0.0.0.
See modules for specific version coordinates:
Fort supports Clojure 1.10.1 and JDK 1.8+.
Use the core.typed mailing list for Fort discussion.
#core-typed on Clojurians Slack (most active, for short announcements and questions)
#typedclojure on ZulipChat (for longer discussions due to threading and unlimited history)
Thanks to the following people for contributing to core.typed, on which Fort is based:
Thanks to the following companies for their active sponsorship of Fort's development via OpenCollective.
Copyright © Ambrose Bonnaire-Sergeant, Rich Hickey & contributors.
Licensed under the EPL (see the file epl-v10.html).
Copyright © Nicola Mometto, Rich Hickey & contributors.
Licensed under the EPL (see the file epl-v10.html).
Copyright © Nicola Mometto, Rich Hickey & contributors.
Licensed under the EPL (see the file epl-v10.html).
Copyright © Nicola Mometto, Rich Hickey & contributors.
Licensed under the EPL (see the file epl-v10.html).
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close