emoji-board icon indicating copy to clipboard operation
emoji-board copied to clipboard

Add build dependencies

Open NeilOnasch0402 opened this issue 6 months ago • 0 comments

Currently the build of emoji-board fails because of missing dependencies. You should add them at least in the README. From what I found out it at least

  • just
  • ghc

and probably some haskell libraries like

  • haskell-base-prelude
  • haskell-interpolate

and some other which I don't care to find myself.

See failing output here:

~/tmp/emoji-board-master: just                                                                  
echo 'Building emoji-board to out/emoji-board…'
Building emoji-board to out/emoji-board…
ghc -outputdir /tmp -o out/emoji-board src/Main.hs
[1 of 1] Compiling Main             ( src/Main.hs, /tmp/Main.o, /tmp/Main.dyn_o )

src/Main.hs:8:8: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.16.4.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
8 | module Main where
  |        ^^^^

src/Main.hs:10:1: error:
    Could not find module ‘Data.String.Interpolate’
    There are files missing in the ‘interpolate-0.2.1’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
10 | import Data.String.Interpolate (i)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:11:1: error:
    Could not find module ‘Data.Text’
    There are files missing in the ‘text-1.2.5.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
11 | import Data.Text qualified as T
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:13:1: error:
    Could not find module ‘Data.Function’
    There are files missing in the ‘base-4.16.4.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
13 | import Data.Function ((&))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:14:1: error:
    Could not find module ‘Data.List’
    There are files missing in the ‘base-4.16.4.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
14 | import Data.List (intercalate, sortBy)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:15:1: error:
    Could not find module ‘Text.Emoji.OpenMoji.Data’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
15 | import Text.Emoji.OpenMoji.Data (openmojis)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:16:1: error:
    Could not find module ‘Text.Emoji.OpenMoji.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
16 | import Text.Emoji.OpenMoji.Types (OpenMoji (_openMoji_annotation, _openMoji_emoji, _openMoji_order, _openMoji_tags))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:17:1: error:
    Could not find module ‘Text.Fuzzily’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
17 | import Text.Fuzzily qualified as Fuzzy
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:19:1: error:
    Could not find module ‘Control.Concurrent’
    There are files missing in the ‘base-4.16.4.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
19 | import Control.Concurrent (forkIO, threadDelay)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:20:1: error:
    Could not find module ‘Control.DeepSeq’
    There are files missing in the ‘deepseq-1.4.6.1’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
20 | import Control.DeepSeq (deepseq)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:21:1: error:
    Could not find module ‘Control.Monad’
    There are files missing in the ‘base-4.16.4.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
21 | import Control.Monad (forM, forM_, void)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:22:1: error:
    Could not find module ‘Data.List.Split’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
22 | import Data.List.Split (chunksOf)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:23:1: error:
    Could not find module ‘Data.Maybe’
    There are files missing in the ‘base-4.16.4.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
23 | import Data.Maybe (catMaybes, fromMaybe, listToMaybe, mapMaybe)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:24:1: error:
    Could not find module ‘GI.Gdk.Objects.Window’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
24 | import GI.Gdk.Objects.Window (windowSetGeometryHints)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:25:1: error:
    Could not find module ‘GI.Gtk’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
25 | import GI.Gtk (Box, Orientation (OrientationHorizontal, OrientationVertical), afterSearchEntrySearchChanged, afterSearchEntryStopSearch, boxNew, boxPackEnd, boxPackStart, buttonNew, containerAdd, containerForeach, entryGetText, flowBoxInsert, flowBoxNew, mainQuit, onButtonClicked, onEntryBufferInsertedText, onSearchEntrySearchChanged, onWidgetDestroy, searchBarNew, searchEntryHandleEvent, searchEntryNew, setButtonLabel, setContainerBorderWidth, setContainerChild, setWindowTitle, widgetDestroy, widgetSetTooltipText, widgetShowAll, windowNew, windowResize, windowSetDecorated, windowSetResizable, windowSetTypeHint)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:26:1: error:
    Could not find module ‘GI.Gtk’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
26 | import GI.Gtk qualified as Gtk (init, main)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:27:1: error:
    Could not find module ‘GI.Gtk.Enums’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
27 | import GI.Gtk.Enums (WindowType (..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:28:1: error:
    Could not find module ‘GI.Gtk.Objects’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
28 | import GI.Gtk.Objects (FlowBox)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:29:1: error:
    Could not find module ‘GI.Gtk.Objects.Window’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
29 | import GI.Gtk.Objects.Window (windowSetDefaultSize)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:30:1: error:
    Could not find module ‘System.Process’
    There are files missing in the ‘process-1.6.16.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
30 | import System.Process (readProcess, readProcessWithExitCode)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Main.hs:31:1: error:
    Could not find module ‘System.Process.Typed’
    Perhaps you meant System.Process.Posix
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
31 | import System.Process.Typed (readProcessStdout)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: Recipe `build` failed on line 3 with exit code 1

NeilOnasch0402 avatar Jul 31 '24 12:07 NeilOnasch0402