projects
/
advent-of-code-22.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidying
[advent-of-code-22.git]
/
advent20
/
Main.hs
diff --git
a/advent20/Main.hs
b/advent20/Main.hs
index eb60a158b15bd9b034c571b69f1ef6beb1ae5999..355d949ff56e9c144b931975f9ea40281e4d796d 100644
(file)
--- a/
advent20/Main.hs
+++ b/
advent20/Main.hs
@@
-1,10
+1,10
@@
-- Writeup at https://work.njae.me.uk/2022/12/21/advent-of-code-2022-day-20/
import AoC
-- Writeup at https://work.njae.me.uk/2022/12/21/advent-of-code-2022-day-20/
import AoC
-import Data.List
+import Data.List
hiding (elemIndex)
import Data.Maybe
import Data.CircularList
import Data.Maybe
import Data.CircularList
-import Control.Lens
+import Control.Lens
hiding (element)
data IndexedElem = IndexedElem { _idx :: Int, _shift :: Int, _value :: Int}
deriving (Show, Eq, Ord)
data IndexedElem = IndexedElem { _idx :: Int, _shift :: Int, _value :: Int}
deriving (Show, Eq, Ord)