Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.01 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.01 KB

Haskell Assignment

This is a Haskell program that reads a remote JSON instance of temperatures and UTC times, using Network.HTTP.Conduit, and places them into haskell data structures using Data.Aeson. Data.Acid is used to persist this data across instances, and a combination of Happstack and Text.Blaze is used to serve this persisted data to a web browser at http://localhost:8000

A simple css is used and served through happstack from './static/screen.css'


Required cabal installation

  • Happstack
  • http-conduit
  • aeson
  • acid-state

How to run

  1. Compile using ghc -o temperatureReader temperatureReader.hs
  2. Run executable
  3. Access from localhost with http://localhost:8000

Resources

Template Haskell

Scrap your boilerplate