Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.
Hi,
I'm having a strange error with Haskell, it tells me there is an error when linking a function
/mnt/c/Users/vljno/Source/Repos/pursssscript2/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.1.0/build/libHSpursssscript2-0.1.0.0-LxcQZaY7Q3Y3vUchvUOU10.a(ParseEvents.o)(.data+0x238): error: undefined reference to 'pursssscript2zm0zi1zi0zi0zmLxcQZZaY7Q3Y3vUchvUOU10_Events_zdtcEvent_closure'
Perhaps you forgot to add a module to the .cabal file?
I don't know how to debug it. I have a type "Event" in my code :
{-# LANGUAGE OverloadedStrings #-} module Events where import Relude(fromMaybe, (!!?), Text) import Data.Functor.Apply import Data.Functor.Alt import Data.Text as Text data StartEvent = StartEventCtor {start_threadID :: Int, start_iD :: Int, start_time :: Int, start_parentId :: Int, start_cpuTicks :: Int, start_label :: Text} data EndEvent = EndEventCtor {end_threadID :: Int, end_iD :: Int, end_time :: Int, taskStartId :: Int, end_cpuTicks :: Int} data TickEvent = TickEventCtor {processCycle :: Int, tilePoolUsage :: Int, time :: Int, threadsCycles :: Int} data Event = Start StartEvent | Stop EndEvent | Tick TickEvent | Unknown -- deriving(Show)
I'm using stack
ho sorry nvm I saw These modules are needed for compilation but not listed in your .cabal file's other-modules: it's a missing module in cabal
These modules are needed for compilation but not listed in your .cabal file's other-modules:
Hi,
I'm having a strange error with Haskell, it tells me there is an error when linking a function
Perhaps you forgot to add a module to the .cabal file?
I don't know how to debug it. I have a type "Event" in my code :
I'm using stack
ho sorry nvm I saw
These modules are needed for compilation but not listed in your .cabal file's other-modules:
it's a missing module in cabal