mstksg / advent-of-code-dev

Interactive development environment and runner for Advent of Code challenges
BSD 3-Clause "New" or "Revised" License
26 stars 13 forks source link

Configuration problems running `aoc-dev`. #1

Open derifatives opened 2 years ago

derifatives commented 2 years ago

Hi!

I'm trying to set this up under MacOS. After forking this, installing cabal and Haskell, installing homebrew, installing llvm, setting paths appropriately, if I run cabal run aoc-dev I get the following error:

app/AOC.hs:1:1: error:
    File name does not match module name:
    Saw: ‘Main’
    Expected: ‘AOC’
  |
1 | {-# LANGUAGE OverloadedStrings              #-}
  | ^

(This is almost certainly something beginner-y, still trying to figure out how stack works. I played around with a few random "put a module incantation" somewhere attempts, but nothing I tried so far helped.)

derifatives commented 2 years ago

As an update, I 'fixed' this issue by moving app/AOC.hs to app/Main.hs, but I'm not sure this is the best possible solution.