Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>codecell</title>
<style type="text/css">
/*!
*
@Cutuchiqueno
Cutuchiqueno / main.hs (timesheetctl)
Last active December 19, 2016 12:50
haskell learning project (ongoing) - manage a timesheet in the shell
module Main (
main
) where
-- | REF für Data Time https://two-wrongs.com/haskell-time-library-tutorial
import Data.Time
import System.Directory (doesFileExist)
data Status = Start | End | Break deriving Show
@Cutuchiqueno
Cutuchiqueno / sctl-gist.hs
Last active December 14, 2015 12:52
This small program was the first real program I wrote in Haskel. The only reason why I put it here is the possibility to receive feedback about the abundant inconsistencies, unsafeties and not very elegant decisions which the code provide to learn and leave them behind next time
-- This small program was the first real program I wrote in Haskel. The
-- only reason why I put it here is the possibility to receive feedback
-- about the abundant inconsistencies, unsafeties and not very elegant
-- decisions which the code provide to learn and leave them behind next
-- time
import Options.Applicative
import System.Environment
import System.Exit
import System.Process