forked from yogsototh/hl
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make downloads page as simple as possible #221
Open
ismailmustafa
wants to merge
2
commits into
haskell-infra:master
Choose a base branch
from
ismailmustafa:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- | Packages page controller. | ||
|
||
module HL.Controller.Packages where | ||
|
||
import HL.Controller | ||
import HL.View.Packages | ||
import HL.Model.Markdown | ||
import HL.View | ||
|
||
-- | Packages controller. | ||
|
||
getPackagesR :: C (Html ()) | ||
getPackagesR = | ||
lucid . packagesFromMarkdown =<< io (getMarkdown "packages-main.md") |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
|
||
-- | Packages page view. | ||
|
||
module HL.View.Packages where | ||
|
||
import HL.Types | ||
import HL.View | ||
import HL.View.Template | ||
|
||
packagesFromMarkdown :: Html () -> FromLucid App | ||
packagesFromMarkdown md = template | ||
[] | ||
"Packages" | ||
( \_ -> container_ | ||
( row_ | ||
( span12_ | ||
[class_ "col-sm-12"] | ||
( do | ||
h1_ (toHtml ("Packages" :: String)) | ||
md | ||
) | ||
) | ||
) | ||
) | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
resolver: lts-6.30 | ||
resolver: lts-10.1 | ||
extra-deps: | ||
- spoon-0.3.1 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
In Haskell, packages are configured and built with the Cabal package system built into GHC (and other compilers). For more specific details, see [The Cabal User Guide](https://www.haskell.org/cabal/users-guide/). The command line tools to download and install packages are either `cabal` or `stack`, each having different workflows. For details on their usage, see the documentation above. | ||
|
||
### Hackage | ||
|
||
Hackage is a repository of packages to which anyone can freely upload at any time. The packages are available immediately and documentation will be generated and hosted there. It can be used by cabal install. | ||
|
||
You can install a package using cabal by running: | ||
|
||
$ cabal update | ||
$ cabal install the-package | ||
|
||
Note that if you are not in a sandbox, this will install the package globally, which is often not what you want, so it is recommended to set up sandboxes in your project directory by running `cabal sandbox init`. | ||
|
||
[Go to Hackage →](https://hackage.haskell.org/packages/) | ||
|
||
### LTS Haskell | ||
|
||
LTS Haskell is a stackage-based long-term support set of packages which build and pass tests together, with backported bug fixes. | ||
|
||
[Get LTS Haskell →](http://www.stackage.org/lts) | ||
|
||
### Stackage Nightly | ||
|
||
Stackage is a nightly generated stable repository of snapshots of package sets in which only packages which build and pass tests together are bundled together into a snapshot. | ||
|
||
[Get Stackage Nightly →](http://www.stackage.org/nightly) | ||
|
||
### From source control repositories | ||
|
||
Installing from a source repository is also possible. For example, to clone and install the network package from source, you would run: | ||
|
||
$ git clone https://github.com/haskell/network | ||
$ cabal install network/ | ||
|
||
Or: | ||
|
||
$ git clone https://github.com/haskell/network | ||
$ cd network | ||
$ cabal install | ||
|
||
<br> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're changing things, it would be better at this point to point to the main hackage url rather than the old packages page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed here 0da454d