Edward's Tech Site
this site made with Next.js 13, see the code
FORAY: Jul 18, 2023 - Haskell
Get a website written in Haskell running on the web
- x get Haskell installed on Hetzner Arch machine
- x write a simple Haskell script that contains a function
- x write a custom Haskell script that contains a function
- changed this up based on the above
- x create GitHub respository with all code
- on GitHub: created repository: et021-haskell-basics
- on Arch machine:
git init -b dev
git remote add origin git@github.com:edwardtanguay/et021-haskell-basics.git
git add .
git commit -m "initial commit"
git push -u origin dev
- worked: repo
- x create script to write to a file
- x learned list functions
- x create a subdomain url site on arch machine which shows index.html page created with Haskell script
- writeFile.hs
import System.IO
main;IO ()
main = do
let filePath = "/var/www/mainsite/haskell.html"
let html = "this is a <b>test</b> of creating a website with Haskell222\n"
writeFile filePath html
- create two lists
- TODO:
- DOING:
- x use lists in site generation
- x use list in code
- x create a UL/LI list
- x rename to haskgen.hs
- x make ability to show output from block in function
- x format with styles
- x add GitHub link
- x organize site
- x add foray link
- x add newlines
- x add links at bottom
- x make examples of list functions
- x clean up
- x make module of little used functions
- .. ranges
- continue with the book: ../starting-out#texas-rangeshttp://learnyouahaskell.com/starting-out#texas-ranges