From 3a26b187d5dc23b05fb73daabe52a92976a7a3c7 Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Fri, 23 Dec 2016 19:03:22 +0000 Subject: [PATCH 1/1] Removed needless directory --- adventofcode16/Setup.hs => Setup.hs | 0 adventofcode16/adventofcode16.cabal => adventofcode16.cabal | 0 {adventofcode16/app => app}/Main.hs | 0 {adventofcode16/app => app}/advent01.hs | 0 {adventofcode16/app => app}/advent02.hs | 0 {adventofcode16/app => app}/advent03.hs | 0 {adventofcode16/app => app}/advent04.hs | 0 {adventofcode16/app => app}/advent05.hs | 0 {adventofcode16/app => app}/advent06-old.hs | 0 {adventofcode16/app => app}/advent06.hs | 0 {adventofcode16/app => app}/advent07.hs | 0 {adventofcode16/app => app}/advent08.hs | 0 {adventofcode16/app => app}/advent09.hs | 0 {adventofcode16/app => app}/advent10.hs | 0 {adventofcode16/app => app}/advent11.hs | 0 {adventofcode16/app => app}/advent11a.hs | 0 {adventofcode16/app => app}/advent11h.hs | 0 {adventofcode16/app => app}/advent11p.hs | 0 {adventofcode16/app => app}/advent12.hs | 0 {adventofcode16/app => app}/advent13.hs | 0 {adventofcode16/app => app}/advent14.hs | 0 {adventofcode16/app => app}/advent14c.hs | 0 {adventofcode16/app => app}/advent14parallel.hs | 0 {adventofcode16/app => app}/advent15.hs | 0 {adventofcode16/app => app}/advent15l.hs | 0 {adventofcode16/app => app}/advent16.hs | 0 {adventofcode16/app => app}/advent16i.hs | 0 {adventofcode16/app => app}/advent17.hs | 0 {adventofcode16/app => app}/advent18.hs | 0 {adventofcode16/app => app}/advent18f.hs | 0 {adventofcode16/app => app}/advent19.hs | 0 {adventofcode16/app => app}/advent20.hs | 0 {adventofcode16/app => app}/advent21.hs | 0 {adventofcode16/app => app}/advent22.hs | 0 {adventofcode16/app => app}/advent22library.hs | 0 {adventofcode16/app => app}/advent22search.hs | 0 {adventofcode16/app => app}/advent22showgrid.hs | 0 {adventofcode16/app => app}/advent23.hs | 4 +--- {adventofcode16/data => data}/advent01.txt | 0 {adventofcode16/data => data}/advent02.txt | 0 {adventofcode16/data => data}/advent03.txt | 0 {adventofcode16/data => data}/advent04.txt | 0 {adventofcode16/data => data}/advent06.txt | 0 {adventofcode16/data => data}/advent07.txt | 0 {adventofcode16/data => data}/advent08.txt | 0 {adventofcode16/data => data}/advent09.txt | 0 {adventofcode16/data => data}/advent10-test.txt | 0 {adventofcode16/data => data}/advent10.txt | 0 {adventofcode16/data => data}/advent12.txt | 0 {adventofcode16/data => data}/advent15.test.txt | 0 {adventofcode16/data => data}/advent15.txt | 0 {adventofcode16/data => data}/advent20.txt | 0 {adventofcode16/data => data}/advent21.txt | 0 {adventofcode16/data => data}/advent22.txt | 0 {adventofcode16/data => data}/advent23.txt | 0 {adventofcode16/src => src}/Lib.hs | 0 adventofcode16/stack.yaml => stack.yaml | 0 {adventofcode16/test => test}/Spec.hs | 0 58 files changed, 1 insertion(+), 3 deletions(-) rename adventofcode16/Setup.hs => Setup.hs (100%) rename adventofcode16/adventofcode16.cabal => adventofcode16.cabal (100%) rename {adventofcode16/app => app}/Main.hs (100%) rename {adventofcode16/app => app}/advent01.hs (100%) rename {adventofcode16/app => app}/advent02.hs (100%) rename {adventofcode16/app => app}/advent03.hs (100%) rename {adventofcode16/app => app}/advent04.hs (100%) rename {adventofcode16/app => app}/advent05.hs (100%) rename {adventofcode16/app => app}/advent06-old.hs (100%) rename {adventofcode16/app => app}/advent06.hs (100%) rename {adventofcode16/app => app}/advent07.hs (100%) rename {adventofcode16/app => app}/advent08.hs (100%) rename {adventofcode16/app => app}/advent09.hs (100%) rename {adventofcode16/app => app}/advent10.hs (100%) rename {adventofcode16/app => app}/advent11.hs (100%) rename {adventofcode16/app => app}/advent11a.hs (100%) rename {adventofcode16/app => app}/advent11h.hs (100%) rename {adventofcode16/app => app}/advent11p.hs (100%) rename {adventofcode16/app => app}/advent12.hs (100%) rename {adventofcode16/app => app}/advent13.hs (100%) rename {adventofcode16/app => app}/advent14.hs (100%) rename {adventofcode16/app => app}/advent14c.hs (100%) rename {adventofcode16/app => app}/advent14parallel.hs (100%) rename {adventofcode16/app => app}/advent15.hs (100%) rename {adventofcode16/app => app}/advent15l.hs (100%) rename {adventofcode16/app => app}/advent16.hs (100%) rename {adventofcode16/app => app}/advent16i.hs (100%) rename {adventofcode16/app => app}/advent17.hs (100%) rename {adventofcode16/app => app}/advent18.hs (100%) rename {adventofcode16/app => app}/advent18f.hs (100%) rename {adventofcode16/app => app}/advent19.hs (100%) rename {adventofcode16/app => app}/advent20.hs (100%) rename {adventofcode16/app => app}/advent21.hs (100%) rename {adventofcode16/app => app}/advent22.hs (100%) rename {adventofcode16/app => app}/advent22library.hs (100%) rename {adventofcode16/app => app}/advent22search.hs (100%) rename {adventofcode16/app => app}/advent22showgrid.hs (100%) rename {adventofcode16/app => app}/advent23.hs (99%) rename {adventofcode16/data => data}/advent01.txt (100%) rename {adventofcode16/data => data}/advent02.txt (100%) rename {adventofcode16/data => data}/advent03.txt (100%) rename {adventofcode16/data => data}/advent04.txt (100%) rename {adventofcode16/data => data}/advent06.txt (100%) rename {adventofcode16/data => data}/advent07.txt (100%) rename {adventofcode16/data => data}/advent08.txt (100%) rename {adventofcode16/data => data}/advent09.txt (100%) rename {adventofcode16/data => data}/advent10-test.txt (100%) rename {adventofcode16/data => data}/advent10.txt (100%) rename {adventofcode16/data => data}/advent12.txt (100%) rename {adventofcode16/data => data}/advent15.test.txt (100%) rename {adventofcode16/data => data}/advent15.txt (100%) rename {adventofcode16/data => data}/advent20.txt (100%) rename {adventofcode16/data => data}/advent21.txt (100%) rename {adventofcode16/data => data}/advent22.txt (100%) rename {adventofcode16/data => data}/advent23.txt (100%) rename {adventofcode16/src => src}/Lib.hs (100%) rename adventofcode16/stack.yaml => stack.yaml (100%) rename {adventofcode16/test => test}/Spec.hs (100%) diff --git a/adventofcode16/Setup.hs b/Setup.hs similarity index 100% rename from adventofcode16/Setup.hs rename to Setup.hs diff --git a/adventofcode16/adventofcode16.cabal b/adventofcode16.cabal similarity index 100% rename from adventofcode16/adventofcode16.cabal rename to adventofcode16.cabal diff --git a/adventofcode16/app/Main.hs b/app/Main.hs similarity index 100% rename from adventofcode16/app/Main.hs rename to app/Main.hs diff --git a/adventofcode16/app/advent01.hs b/app/advent01.hs similarity index 100% rename from adventofcode16/app/advent01.hs rename to app/advent01.hs diff --git a/adventofcode16/app/advent02.hs b/app/advent02.hs similarity index 100% rename from adventofcode16/app/advent02.hs rename to app/advent02.hs diff --git a/adventofcode16/app/advent03.hs b/app/advent03.hs similarity index 100% rename from adventofcode16/app/advent03.hs rename to app/advent03.hs diff --git a/adventofcode16/app/advent04.hs b/app/advent04.hs similarity index 100% rename from adventofcode16/app/advent04.hs rename to app/advent04.hs diff --git a/adventofcode16/app/advent05.hs b/app/advent05.hs similarity index 100% rename from adventofcode16/app/advent05.hs rename to app/advent05.hs diff --git a/adventofcode16/app/advent06-old.hs b/app/advent06-old.hs similarity index 100% rename from adventofcode16/app/advent06-old.hs rename to app/advent06-old.hs diff --git a/adventofcode16/app/advent06.hs b/app/advent06.hs similarity index 100% rename from adventofcode16/app/advent06.hs rename to app/advent06.hs diff --git a/adventofcode16/app/advent07.hs b/app/advent07.hs similarity index 100% rename from adventofcode16/app/advent07.hs rename to app/advent07.hs diff --git a/adventofcode16/app/advent08.hs b/app/advent08.hs similarity index 100% rename from adventofcode16/app/advent08.hs rename to app/advent08.hs diff --git a/adventofcode16/app/advent09.hs b/app/advent09.hs similarity index 100% rename from adventofcode16/app/advent09.hs rename to app/advent09.hs diff --git a/adventofcode16/app/advent10.hs b/app/advent10.hs similarity index 100% rename from adventofcode16/app/advent10.hs rename to app/advent10.hs diff --git a/adventofcode16/app/advent11.hs b/app/advent11.hs similarity index 100% rename from adventofcode16/app/advent11.hs rename to app/advent11.hs diff --git a/adventofcode16/app/advent11a.hs b/app/advent11a.hs similarity index 100% rename from adventofcode16/app/advent11a.hs rename to app/advent11a.hs diff --git a/adventofcode16/app/advent11h.hs b/app/advent11h.hs similarity index 100% rename from adventofcode16/app/advent11h.hs rename to app/advent11h.hs diff --git a/adventofcode16/app/advent11p.hs b/app/advent11p.hs similarity index 100% rename from adventofcode16/app/advent11p.hs rename to app/advent11p.hs diff --git a/adventofcode16/app/advent12.hs b/app/advent12.hs similarity index 100% rename from adventofcode16/app/advent12.hs rename to app/advent12.hs diff --git a/adventofcode16/app/advent13.hs b/app/advent13.hs similarity index 100% rename from adventofcode16/app/advent13.hs rename to app/advent13.hs diff --git a/adventofcode16/app/advent14.hs b/app/advent14.hs similarity index 100% rename from adventofcode16/app/advent14.hs rename to app/advent14.hs diff --git a/adventofcode16/app/advent14c.hs b/app/advent14c.hs similarity index 100% rename from adventofcode16/app/advent14c.hs rename to app/advent14c.hs diff --git a/adventofcode16/app/advent14parallel.hs b/app/advent14parallel.hs similarity index 100% rename from adventofcode16/app/advent14parallel.hs rename to app/advent14parallel.hs diff --git a/adventofcode16/app/advent15.hs b/app/advent15.hs similarity index 100% rename from adventofcode16/app/advent15.hs rename to app/advent15.hs diff --git a/adventofcode16/app/advent15l.hs b/app/advent15l.hs similarity index 100% rename from adventofcode16/app/advent15l.hs rename to app/advent15l.hs diff --git a/adventofcode16/app/advent16.hs b/app/advent16.hs similarity index 100% rename from adventofcode16/app/advent16.hs rename to app/advent16.hs diff --git a/adventofcode16/app/advent16i.hs b/app/advent16i.hs similarity index 100% rename from adventofcode16/app/advent16i.hs rename to app/advent16i.hs diff --git a/adventofcode16/app/advent17.hs b/app/advent17.hs similarity index 100% rename from adventofcode16/app/advent17.hs rename to app/advent17.hs diff --git a/adventofcode16/app/advent18.hs b/app/advent18.hs similarity index 100% rename from adventofcode16/app/advent18.hs rename to app/advent18.hs diff --git a/adventofcode16/app/advent18f.hs b/app/advent18f.hs similarity index 100% rename from adventofcode16/app/advent18f.hs rename to app/advent18f.hs diff --git a/adventofcode16/app/advent19.hs b/app/advent19.hs similarity index 100% rename from adventofcode16/app/advent19.hs rename to app/advent19.hs diff --git a/adventofcode16/app/advent20.hs b/app/advent20.hs similarity index 100% rename from adventofcode16/app/advent20.hs rename to app/advent20.hs diff --git a/adventofcode16/app/advent21.hs b/app/advent21.hs similarity index 100% rename from adventofcode16/app/advent21.hs rename to app/advent21.hs diff --git a/adventofcode16/app/advent22.hs b/app/advent22.hs similarity index 100% rename from adventofcode16/app/advent22.hs rename to app/advent22.hs diff --git a/adventofcode16/app/advent22library.hs b/app/advent22library.hs similarity index 100% rename from adventofcode16/app/advent22library.hs rename to app/advent22library.hs diff --git a/adventofcode16/app/advent22search.hs b/app/advent22search.hs similarity index 100% rename from adventofcode16/app/advent22search.hs rename to app/advent22search.hs diff --git a/adventofcode16/app/advent22showgrid.hs b/app/advent22showgrid.hs similarity index 100% rename from adventofcode16/app/advent22showgrid.hs rename to app/advent22showgrid.hs diff --git a/adventofcode16/app/advent23.hs b/app/advent23.hs similarity index 99% rename from adventofcode16/app/advent23.hs rename to app/advent23.hs index dfb98cd..2903967 100644 --- a/adventofcode16/app/advent23.hs +++ b/app/advent23.hs @@ -21,7 +21,6 @@ data Machine = Machine { a :: Int , instructions :: [Instruction]} deriving (Show, Eq) - testInstructions = "cpy 2 a\n\ \tgl a\n\ \tgl a\n\ @@ -30,7 +29,6 @@ testInstructions = "cpy 2 a\n\ \dec a\n\ \dec a" - emptyMachine :: Machine emptyMachine = Machine {a=0, b=0, c=0, d=0, pc=0, instructions=[]} @@ -179,4 +177,4 @@ parseIline input = parse instructionLine "(unknown)" input successfulParse :: Either ParseError [a] -> [a] successfulParse (Left _) = [] -successfulParse (Right a) = a \ No newline at end of file +successfulParse (Right a) = a diff --git a/adventofcode16/data/advent01.txt b/data/advent01.txt similarity index 100% rename from adventofcode16/data/advent01.txt rename to data/advent01.txt diff --git a/adventofcode16/data/advent02.txt b/data/advent02.txt similarity index 100% rename from adventofcode16/data/advent02.txt rename to data/advent02.txt diff --git a/adventofcode16/data/advent03.txt b/data/advent03.txt similarity index 100% rename from adventofcode16/data/advent03.txt rename to data/advent03.txt diff --git a/adventofcode16/data/advent04.txt b/data/advent04.txt similarity index 100% rename from adventofcode16/data/advent04.txt rename to data/advent04.txt diff --git a/adventofcode16/data/advent06.txt b/data/advent06.txt similarity index 100% rename from adventofcode16/data/advent06.txt rename to data/advent06.txt diff --git a/adventofcode16/data/advent07.txt b/data/advent07.txt similarity index 100% rename from adventofcode16/data/advent07.txt rename to data/advent07.txt diff --git a/adventofcode16/data/advent08.txt b/data/advent08.txt similarity index 100% rename from adventofcode16/data/advent08.txt rename to data/advent08.txt diff --git a/adventofcode16/data/advent09.txt b/data/advent09.txt similarity index 100% rename from adventofcode16/data/advent09.txt rename to data/advent09.txt diff --git a/adventofcode16/data/advent10-test.txt b/data/advent10-test.txt similarity index 100% rename from adventofcode16/data/advent10-test.txt rename to data/advent10-test.txt diff --git a/adventofcode16/data/advent10.txt b/data/advent10.txt similarity index 100% rename from adventofcode16/data/advent10.txt rename to data/advent10.txt diff --git a/adventofcode16/data/advent12.txt b/data/advent12.txt similarity index 100% rename from adventofcode16/data/advent12.txt rename to data/advent12.txt diff --git a/adventofcode16/data/advent15.test.txt b/data/advent15.test.txt similarity index 100% rename from adventofcode16/data/advent15.test.txt rename to data/advent15.test.txt diff --git a/adventofcode16/data/advent15.txt b/data/advent15.txt similarity index 100% rename from adventofcode16/data/advent15.txt rename to data/advent15.txt diff --git a/adventofcode16/data/advent20.txt b/data/advent20.txt similarity index 100% rename from adventofcode16/data/advent20.txt rename to data/advent20.txt diff --git a/adventofcode16/data/advent21.txt b/data/advent21.txt similarity index 100% rename from adventofcode16/data/advent21.txt rename to data/advent21.txt diff --git a/adventofcode16/data/advent22.txt b/data/advent22.txt similarity index 100% rename from adventofcode16/data/advent22.txt rename to data/advent22.txt diff --git a/adventofcode16/data/advent23.txt b/data/advent23.txt similarity index 100% rename from adventofcode16/data/advent23.txt rename to data/advent23.txt diff --git a/adventofcode16/src/Lib.hs b/src/Lib.hs similarity index 100% rename from adventofcode16/src/Lib.hs rename to src/Lib.hs diff --git a/adventofcode16/stack.yaml b/stack.yaml similarity index 100% rename from adventofcode16/stack.yaml rename to stack.yaml diff --git a/adventofcode16/test/Spec.hs b/test/Spec.hs similarity index 100% rename from adventofcode16/test/Spec.hs rename to test/Spec.hs -- 2.34.1