Created
June 9, 2022 20:26
-
-
Save shapr/75e84f2b8165dc6cb817cc9a44011170 to your computer and use it in GitHub Desktop.
skeleton for advent of code 2015 day 1 part 1
This file contains hidden or 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
| module Main where | |
| main :: IO () | |
| main = do | |
| theFile <- readFile "input.txt" | |
| print (theFunction theFile) | |
| theFunction x = x | |
| mylength :: Num p => [a] -> p | |
| mylength [] = 0 | |
| mylength (_ : xs) = 1 + mylength xs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment