Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLS integration fixes for the chainweb-data codebase #157

Merged
merged 2 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions haskell-src/exec/Chainweb/Coins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions haskell-src/exec/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down
5 changes: 5 additions & 0 deletions hie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cradle:
cabal:
- path: "haskell-src"
component: "lib:chainweb-data"