Skip to content
Open
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
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-22.04"]
ghc: ["9.6.2", "9.4.3", "9.2.8", "9.0.2", "8.10.7", "8.8.4", "8.6.5", "8.4.4", "8.2.2"]
os: ["ubuntu-24.04"]
ghc: ["9.14.1", "9.12.4", "9.10.3", "9.8.4", "9.6.7", "9.4.8", "9.2.8", "9.0.2", "8.10.7", "8.8.4", "8.6.5", "8.4.4", "8.2.2"]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Setup Haskell
uses: haskell/actions/setup@v2
uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
Expand All @@ -35,7 +35,7 @@ jobs:
mv cabal.project.freeze frozen

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-${{ hashFiles('frozen') }}
Expand All @@ -53,16 +53,16 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-22.04"]
ghc: ["8.2.2"]
aeson: ["1.1", "1.2", "1.3", "1.4", "1.5", "2.0", "2.1", "2.2"]
os: ["ubuntu-24.04"]
ghc: ["9.0.2"]
aeson: ["1.5", "2.0", "2.1", "2.2", "2.3"]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Setup Haskell
uses: haskell/actions/setup@v2
uses: haskell-actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
Expand All @@ -74,7 +74,7 @@ jobs:
mv cabal.project.freeze frozen

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-aeson-${{ matrix.aeson }}-${{ hashFiles('frozen') }}
Expand All @@ -95,10 +95,10 @@ jobs:
aesons,
ghcs
]
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Check dependencies for failures
run: |
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.markdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# aeson-pretty changelog

## 0.8.10
## 0.8.11
* Dropped support for Aeson 1.4 and older
* Added support for Aeson 2.3
* Added support for Aeson 2.2

## 0.8.10
* Added support for Aeson 2.1

## 0.8.9
Expand Down
4 changes: 2 additions & 2 deletions aeson-pretty.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.0
name: aeson-pretty
version: 0.8.10
version: 0.8.11
license: BSD3
license-file: LICENSE
category: Text, Web, JSON, Pretty Printer
Expand Down Expand Up @@ -41,7 +41,7 @@ library
Data.Aeson.Encode.Pretty

build-depends:
aeson ^>=1.1 || ^>=1.2 || ^>=1.3 || ^>=1.4 || ^>=1.5 || ^>=2.0 || ^>=2.1 || ^>=2.2,
aeson >=1.5 && <2.4,
base >= 4.5,
base-compat >= 0.9,
bytestring >= 0.9,
Expand Down
6 changes: 5 additions & 1 deletion cli-tool/Main.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE DeriveDataTypeable, RecordWildCards, OverloadedStrings #-}
{-# LANGUAGE CPP, DeriveDataTypeable, RecordWildCards, OverloadedStrings #-}
module Main (main) where

import Prelude hiding (interact, concat, unlines, null)
Expand All @@ -16,7 +16,11 @@ data Options = Opts { compact :: Bool
, indent :: Int
, sort :: Bool
}
#if __GLASGOW_HASKELL__ >= 912
deriving (Data)
#else
deriving (Data, Typeable)
#endif

opts :: Options
opts = Opts
Expand Down