Skip to content

Commit

Permalink
move Blammo into a subdirectory (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-martin authored Jul 19, 2024
1 parent b2e52ec commit d72bd97
Show file tree
Hide file tree
Showing 41 changed files with 36 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
- uses: haskell-actions/hlint-run@v2
with:
fail-on: warning
path: '["src/", "tests/"]'
path: '["Blammo/src/", "Blammo/tests/"]'
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,27 @@ on:
jobs:
release:
runs-on: ubuntu-latest

strategy:
matrix:
package:
- Blammo

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- id: tag
uses: freckle/haskell-tag-action@v1
with:
package-yaml: ${{ matrix.package }}/package.yaml
tag-prefix: ${{ matrix.package }}-v
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- if: steps.tag.outputs.tag
uses: freckle/stack-upload-action@v2
run: stack upload --pvp-bounds lower
with:
working-directory: ${{ matrix.package }}
env:
HACKAGE_API_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}
HACKAGE_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }}
STACK_YAML: ../stack-lts-14.27.yaml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ appendLogStr (LoggedMessages ref) str =
appendLogStrLn :: MonadIO m => LoggedMessages -> LogStr -> m ()
appendLogStrLn lm = appendLogStr lm . (<> "\n")

getLoggedMessages :: MonadIO m => LoggedMessages -> m [Either String LoggedMessage]
getLoggedMessages
:: MonadIO m => LoggedMessages -> m [Either String LoggedMessage]
getLoggedMessages (LoggedMessages ref) =
map (eitherDecodeStrict . fromLogStr) . DList.toList <$> readIORef ref
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions stack-lts-14.27.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ extra-deps:
- hspec-discover-2.7.9
- primitive-0.7.4.0
- these-1.1

packages:
- Blammo
3 changes: 3 additions & 0 deletions stack-lts-16.31.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ extra-deps:
- monad-logger-0.3.39
- monad-logger-aeson-0.4.0.3
- context-0.2.0.0

packages:
- Blammo
3 changes: 3 additions & 0 deletions stack-lts-18.28.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ extra-deps:
- monad-logger-0.3.39
- monad-logger-aeson-0.4.0.3
- context-0.2.0.0

packages:
- Blammo
3 changes: 3 additions & 0 deletions stack-lts-19.33.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ extra-deps:
- monad-logger-0.3.39
- monad-logger-aeson-0.4.0.3
- context-0.2.0.1

packages:
- Blammo
3 changes: 3 additions & 0 deletions stack-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ extra-deps:
allow-newer: true
allow-newer-deps:
- monad-logger-aeson

packages:
- Blammo
3 changes: 3 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ extra-deps:
allow-newer: true
allow-newer-deps:
- monad-logger-aeson

packages:
- Blammo

0 comments on commit d72bd97

Please sign in to comment.