Permalink
Browse files

start process of adding .hs to elm-lang repository

  • Loading branch information...
1 parent babd44c commit 50644bd9a6b2c3956fa71dd2eac508574fa7beb3 Evan Czaplicki committed Oct 2, 2012
View
@@ -1,5 +0,0 @@
-
-/Website/Docs.js
-/Website/libs.js
-/Website/Skeleton.js
-/Website/Tiles.js
View
@@ -1,65 +0,0 @@
-
-import Website.Skeleton (addSpaces, skeleton)
-import Website.Tiles (tile)
-import Data.List
-import Graphics.Text as Text
-
-standard = ("General Purpose",
- [ ("Data.Char", "docs/Data/Char.elm")
- , ("Data.Maybe", "docs/Data/Maybe.elm")
- , ("Data.List", "docs/Data/List.elm")
- , ("Prelude", "docs/Prelude.elm")
- ])
-
-elements = ("Graphics",
- [ ("Graphics.Element", "docs/Graphics/Element.elm")
- , ("Graphics.Color" , "docs/Graphics/Color.elm")
- , ("Graphics.Text", "docs/Graphics/Text.elm")
- ])
-
-reaction = ("Signals",
- [ ("Signal" , "docs/Signal/Signal.elm")
- , ("Signal.Mouse" , "docs/Signal/Mouse.elm")
- , ("Signal.Keyboard.Raw", "docs/Signal/KeyboardRaw.elm")
- , ("Signal.Window" , "docs/Signal/Window.elm")
- , ("Signal.Time" , "docs/Signal/Time.elm")
- , ("Signal.HTTP" , "docs/Signal/HTTP.elm")
- , ("Signal.Input" , "docs/Signal/Input.elm")
- , ("Signal.Random" , "docs/Signal/Random.elm")
- ])
-
-ffi = ("JavaScript Interface",
- [ ("Foreign.JavaScript", "docs/Foreign/JavaScript.elm")
- , ("Foreign.JavaScript.Experimental", "docs/Foreign/JavaScript/Experimental.elm")
- , ("Foreign.JavaScript.JSON", "docs/Foreign/JavaScript/JSON.elm")
- ])
-
-intro = [markdown|
-
-### Library Documentation
-
-This section provides type-signatures and explanations of Elm's current
-standard libraries.
-
-[This blog][1] is the source of some discussion and
-announcements. It also has more detailed information on the [module system][2]
-and [JavaScript integration][3].
-
-My [thesis][4] gives a more formal specification of Elm.
-
- [1]: http://www.testblogpleaseignore.com "Elm blog"
- [2]: http://www.testblogpleaseignore.com/2012/06/19/announcing-elm-0-3-modules/ "module system"
- [3]: http://www.testblogpleaseignore.com/2012/06/29/announcing-elm-0-3-5-javascript-integration-signal-filters-and-more/ "JavaScript integration"
- [4]: http://www.testblogpleaseignore.com/wp-content/uploads/2012/04/thesis.pdf "Elm Thesis"
-
-|]
-
-linkify (name, src) = toText " " ++ Text.link src (toText name)
-linkList (name, pairs) =
- flow down . map text $ bold (toText name) : map linkify pairs
-links = map linkList [ standard, elements, reaction, ffi ]
-
-categories w =
- flow down . map (width w) . intersperse (plainText " ") $ intro : links
-
-main = lift (skeleton categories) Window.width
View
@@ -1,26 +0,0 @@
-
-import Website.Skeleton
-import Signal.Window as Window
-
-info w = width w [markdown|
-
-### Installation
-
-See these [install instructions][1] to get Elm running on your machine.
-If you run into problems, you should email the [mailing list][2]
-or report an issue to Elm's [source repository][3]
-
-### Thesis on Elm
-
-My [thesis on Elm][4] is available too. It provides a more formal
-definition of Elm and a discription of Concurrent FRP, a new approach
-to efficient Functional Reactive Programming.
-
- [1]: https://github.com/evancz/Elm/blob/master/README.md "install instructions"
- [2]: https://groups.google.com/forum/?fromgroups#!forum/elm-discuss "email list"
- [3]: https://github.com/evancz/Elm "source repository"
- [4]: http://www.testblogpleaseignore.com/wp-content/uploads/2012/04/thesis.pdf "thesis on Elm"
-
-|]
-
-main = lift (skeleton info) Window.width
View
67 Elm.elm
@@ -1,67 +0,0 @@
-import Website.Skeleton
-import Website.Tiles
-
-intro = [markdown|
-
-### The Elm Programming Language
-
-The Elm programming language aims to make web development
-more pleasant. Elm is a type-safe, functional reactive language
-that compiles to HTML, CSS, and JavaScript. You can start coding
-in Elm without any install or setup with Elm's [interactive editor][1],
-so start learning Elm by [example][2]:
-
- [1]: /edit/examples/Reactive/Transforms.elm "interactive editor"
- [2]: /Examples.elm "example"
-
-|]
-
-exampleData =
- [ ("Layout" , "FlowDown2" , "Elements/")
- , ("Shapes" , "Shapes" , "Elements/")
- , ("Analog Clock" , "Clock" , "Intermediate/")
- , ("Slide Show" , "SlideShow" , "Intermediate/")
- , ("Form Validation", "Form" , "Intermediate/")
- ]
-
-examples w = let tiles = tile w $ map toTile exampleData in
- container w (heightOf tiles) middle tiles
-
-rest = [markdown|
-
-Elm's major distinguishing features are support for [reactive programming][1]
-and its focus on graphical user interfaces. Elm is also [call-by-value][2] and
-[strongly][3] / [statically][4] typed with [type inference][5], so those of you
-already familiar with languages like Haskell or ML should be quite comfortable.
-
-The language features mentioned above help catch errors in your code at
-compile time, but there are some errors that are external to your code,
-such as browser incompatabilities. By using HTML, CSS, and JavaScript as
-an assembly language, Elm can avoid some of these problems.
-
- [1]: http://en.wikipedia.org/wiki/Reactive_programming "reactive programming"
- [2]: http://en.wikipedia.org/wiki/Evaluation_strategy "call-by-value"
- [3]: http://en.wikipedia.org/wiki/Strong_typing "strongly"
- [4]: http://en.wikipedia.org/wiki/Type_system#Static_typing "statically"
- [5]: http://en.wikipedia.org/wiki/Type_inference "type inference"
-
-<br/>
-
-#### News
-
-Elm 0.4: New features for game making and layout, Markdown support,
-optimizations, and more. More information [here][6].
-
- [6]: /blog/announce/version-0.4.0.elm "announcement"
-
-#### Contact
-
-See the Elm [mailing list][7] for questions, announcements, and discussion. You can contact me directly at info (at) elm-lang (dot) org.
-
- [7]: https://groups.google.com/forum/?fromgroups#!forum/elm-discuss "mailing list"
-
-|]
-
-info w = flow down $ map (width w) [ intro, examples w, rest ]
-
-main = lift (skeleton info) Window.width
View
@@ -1,55 +0,0 @@
-
-import Website.Skeleton
-import Website.Tiles
-
-words = [markdown|
-
-### Learn by Example
-
-Elm's interactive editor allows you to learn Elm by seeing and modifying
-actual code. There are a couple categories of examples for designed to build
-certain skills:
-
-[Basic][1] &#8212; the basic building blocks of Elm
-
-[Intermediate][2] &#8212; building components with Elm
-
-[Elm + JavaScript][3] &#8212; use existing JavaScript libraries, features, etc.
-
-[Elm + Haskell][4] &#8212; serve Elm code without leaving Haskell
-
-[This Website][5] &#8212; the Elm source code for this site
-
-[Elm for Games][6] &#8212; how to make games in Elm
-
-<br/>
-
- [1]: /examples/Basic.elm "Basic"
- [2]: /examples/Intermediate.elm "Intermediate"
- [3]: /examples/ElmJS.elm "Elm + JavaScript"
- [4]: /examples/ElmHaskell.elm "Elm + Haskell"
- [5]: /examples/ThisWebsite.elm "This Website"
- [6]: /blog/games-in-elm/part-0/Making-Pong.html "Elm for Games"
-
-### Quick Overview of Elm
-
-If you just want a brief overview, check out the following examples:
-
-|]
-
-examples =
- [ ("Layout" , "FlowDown2" , "Elements/")
- , ("Centering" , "Centering" , "Reactive/")
- , ("Shapes" , "Shapes" , "Elements/")
- , ("Abstract Data Types", "Tree", "Functional/")
- , ("Analog Clock" , "Clock" , "Intermediate/")
- , ("Light Box" , "LightBox" , "Intermediate/")
- , ("Graphs" , "Plot" , "Intermediate/")
- , ("Form Validation", "Form" , "Intermediate/")
- , ("This Page" , "Examples" , "../")
- ]
-
-content w = let tiles = tile w $ map toTile examples in
- width w words `above` container w (heightOf tiles) middle tiles
-
-main = lift (skeleton content) Window.width
View
@@ -1,4 +0,0 @@
-elm-lang.org
-============
-
-The .elm source files used to create [elm-lang.org](http://elm-lang.org/), the home-page of the Elm programming language.
Oops, something went wrong.

0 comments on commit 50644bd

Please sign in to comment.