File tree Expand file tree Collapse file tree 4 files changed +14
-11
lines changed
kubernetes-api-client/src/Kubernetes Expand file tree Collapse file tree 4 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import Data.Either.Combinators
1515import Data.Function ((&) )
1616import Data.Map (Map )
1717import Data.Maybe
18- import Data.Text
18+ import Data.Text ( Text )
1919import Data.Text.Encoding (encodeUtf8 )
2020import Data.Time.Clock.POSIX (getPOSIXTime )
2121import Jose.Jwt
Original file line number Diff line number Diff line change 11{-# LANGUAGE CPP #-}
22{-# LANGUAGE OverloadedStrings #-}
3+
34module Kubernetes.Data.K8sJSONPath where
45
5- import Control.Applicative ((<|>) )
6+ import Control.Applicative ((<|>) )
67import Data.Aeson
78import Data.Aeson.Text
89import Data.Bifunctor
910import Data.JSONPath
10- import Data.Text as Text
11- import Data.Text.Lazy (toStrict )
11+ import Data.Text (Text )
12+ import qualified Data.Text as Text
13+ import Data.Text.Lazy (toStrict )
1214
1315#if !MIN_VERSION_base(4,11,0)
1416import Data.Monoid ((<>) )
@@ -72,7 +74,7 @@ runPathElement (JSONPath p) v = encodeResult $ executeJSONPath p v
7274
7375#if MIN_VERSION_jsonpath(0,3,0)
7476encodeResult :: [Value ] -> Either String Text
75- encodeResult vals = return $ (intercalate " " $ Prelude. map jsonToText vals)
77+ encodeResult vals = return $ (Text. intercalate " " $ Prelude. map jsonToText vals)
7678#else
7779encodeResult :: ExecutionResult Value -> Either String Text
7880encodeResult (ResultValue val) = return $ jsonToText val
Original file line number Diff line number Diff line change 1- resolver : lts-23.7
1+ resolver : nightly-2025-03-26
2+ compiler : ghc-9.12.1
23
34# This repo contains multiple versions of kubernetes-api, in the
45# kubernetes-api-* directories.
Original file line number Diff line number Diff line change 11# This file was autogenerated by Stack.
22# You should not edit this file by hand.
33# For more information, please see the documentation at:
4- # https://docs.haskellstack.org/en/stable/lock_files
4+ # https://docs.haskellstack.org/en/stable/topics/ lock_files
55
66packages:
77- completed:
@@ -17,7 +17,7 @@ packages:
1717 git: https://github.com/codedownio/haskell-oidc-client
1818snapshots:
1919- completed:
20- sha256: 4ef79c30b9efcf07335cb3de532983a7ac4c5a4180bc17f6212a86b09ce2ff75
21- size: 680777
22- url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/23/7 .yaml
23- original: lts-23.7
20+ sha256: 4c29c0db842701a33a94ab7567579e4e6e46169b904ab912887651025a314e8e
21+ size: 668540
22+ url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2025/3/26 .yaml
23+ original: nightly-2025-03-26
You can’t perform that action at this time.
0 commit comments