diff --git a/haskell-src/exec/Chainweb/Coins.hs b/haskell-src/exec/Chainweb/Coins.hs index d57bf3c1..4fa46e2a 100644 --- a/haskell-src/exec/Chainweb/Coins.hs +++ b/haskell-src/exec/Chainweb/Coins.hs @@ -37,11 +37,11 @@ import Text.Read -- | Read in the reward csv via TH for deployment purposes. -- rawMinerRewards :: ByteString -rawMinerRewards = $(embedFile "data/miner_rewards.csv") +rawMinerRewards = $(makeRelativeToProject "data/miner_rewards.csv" >>= embedFile) {-# NOINLINE rawMinerRewards #-} rawAllocations :: ByteString -rawAllocations = $(embedFile "data/token_payments.csv") +rawAllocations = $(makeRelativeToProject "data/token_payments.csv" >>= embedFile) allocations :: [AllocationEntry] allocations = V.toList $ decodeAllocations rawAllocations diff --git a/haskell-src/exec/Main.hs b/haskell-src/exec/Main.hs index 0f57658c..69398c82 100644 --- a/haskell-src/exec/Main.hs +++ b/haskell-src/exec/Main.hs @@ -118,10 +118,10 @@ main = do CheckSchema _ level -> level migrationFiles :: [(FilePath, BS.ByteString)] -migrationFiles = $(embedDir "db-schema/migrations") +migrationFiles = $(makeRelativeToProject "db-schema/migrations" >>= embedDir) initSql :: BS.ByteString -initSql = $(embedFile "db-schema/init.sql") +initSql = $(makeRelativeToProject "db-schema/init.sql" >>= embedFile) runMigrations :: P.Pool Connection -> diff --git a/hie.yaml b/hie.yaml new file mode 100644 index 00000000..16a7d288 --- /dev/null +++ b/hie.yaml @@ -0,0 +1,5 @@ +cradle: + cabal: + - path: "haskell-src" + component: "lib:chainweb-data" +