<commit_before>{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS -fno-warn-unused-do-bind #-}

-- | Documentation page view.

module HL.V.Documentation where

import HL.V
import HL.V.Template

-- | Documentation view.
documentationV :: FromSenza App
documentationV =
  template
    []
    "Documentation"
    (\url ->
       container
         (row
            (span12
               []
               (do h1 [] "Documentation"
                   books
                   manuals
                   report url))))

books =
  do h2 [] "Books"
     p [] "Latest books for learning Haskell:"
     links modern
     p [] "Older books:"
     links older
  where
    modern =
      [("Learn You a Haskell for Great Good!","http://learnyouahaskell.com/")
      ,("Real World Haskell","http://book.realworldhaskell.org/")
      ,("Beginning Haskell","http://www.apress.com/9781430262503")]
    older =
      [("Programming in Haskell","http://www.cs.nott.ac.uk/~gmh/book.html")
      ,("Haskell: The Craft of Functional Programming","http://www.cs.ukc.ac.uk/people/staff/sjt/craft2e/")
      ,("Introduction to Functional Programming using Haskell","http://www.prenhall.com/allbooks/ptr_0134843460.html")]


manuals = do h2 [] "Manuals"
             p [] "Manuals that cover common Haskell tooling:"
             links tools
  where tools = [("GHC User Guide","http://www.haskell.org/ghc/docs/latest/html/users_guide/")
                ,("Cabal User Guide","http://www.haskell.org/cabal/users-guide/")
                ,("Haddock User Guide","http://www.haskell.org/haddock/doc/html/index.html")
                ,("What I Wish I Knew When Learning Haskell","http://dev.stephendiehl.com/hask/#cabal")]
<commit_msg>Link to the Brent Yorgey course<commit_after>{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS -fno-warn-unused-do-bind #-}

-- | Documentation page view.

module HL.V.Documentation where

import HL.V
import HL.V.Template

-- | Documentation view.
documentationV :: FromSenza App
documentationV =
  template
    []
    "Documentation"
    (\url ->
       container
         (row
            (span12
               []
               (do h1 [] "Documentation"
                   books
                   online
                   manuals
                   report url))))

books =
  do h2 [] "Books"
     p [] "Latest books for learning Haskell:"
     links modern
     p [] "Older books:"
     links older
  where
    modern =
      [("Learn You a Haskell for Great Good!","http://learnyouahaskell.com/")
      ,("Real World Haskell","http://book.realworldhaskell.org/")
      ,("Beginning Haskell","http://www.apress.com/9781430262503")]
    older =
      [("Programming in Haskell","http://www.cs.nott.ac.uk/~gmh/book.html")
      ,("Haskell: The Craft of Functional Programming","http://www.cs.ukc.ac.uk/people/staff/sjt/craft2e/")
      ,("Introduction to Functional Programming using Haskell","http://www.prenhall.com/allbooks/ptr_0134843460.html")]

online =
  do h2 [] "Online resources"
     p [] "Resources put together by the Haskell community at-large:"
     links resources
  where
    resources =
      [("University of Pennsylvania's CIS 194","https://www.seas.upenn.edu/~cis194/")
      ,("<NAME>'s List of Haskell Resources","https://github.com/bitemyapp/learnhaskell")
      ]


manuals = do h2 [] "Manuals"
             p [] "Manuals that cover common Haskell tooling:"
             links tools
  where tools = [("GHC User Guide","http://www.haskell.org/ghc/docs/latest/html/users_guide/")
                ,("Cabal User Guide","http://www.haskell.org/cabal/users-guide/")
                ,("Haddock User Guide","http://www.haskell.org/haddock/doc/html/index.html")
                ,("What I Wish I Knew When Learning Haskell","http://dev.stephendiehl.com/hask/#cabal")]

{'fraction_non_alphanumeric': 0.148378728923476, 'fraction_numerical': 0.016861219195849545, 'mean_word_length': 2.3676855895196507, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 15, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4791551', 'n_tokens_mistral': 1331, 'n_tokens_neox': 1196, 'n_words': 264}