Skip to content

Commit

Permalink
Fix Map alias
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Jul 27, 2024
1 parent 6c8dc09 commit 842754d
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 11 deletions.
6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@
# Delete openapi.yaml from the extra-source-files
${pkgs.gnused}/bin/sed -i '/^\s*openapi\.yaml$/d' "${dir}/docker-engine.cabal"
# Patch up some problems
echo "type Map = A.Object" >> "${dir}/lib/DockerEngine/Model.hs"
# Patch up some problems.
# This "Map" type is emitted for the "Topology" definition. Not sure how to correct
# the spec, so let's just provide a type alias here.
echo "type Map = HM.HashMap String String" >> "${dir}/lib/DockerEngine/Model.hs"
'';

in
Expand Down
2 changes: 1 addition & 1 deletion v1.36/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9652,4 +9652,4 @@ toTaskState = \case



type Map = A.Object
type Map = HM.HashMap String String
2 changes: 1 addition & 1 deletion v1.37/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9663,4 +9663,4 @@ toTaskState = \case



type Map = A.Object
type Map = HM.HashMap String String
2 changes: 1 addition & 1 deletion v1.38/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9772,4 +9772,4 @@ toTaskState = \case



type Map = A.Object
type Map = HM.HashMap String String
2 changes: 1 addition & 1 deletion v1.39/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10194,4 +10194,4 @@ toTaskState = \case



type Map = A.Object
type Map = HM.HashMap String String
2 changes: 1 addition & 1 deletion v1.40/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10382,4 +10382,4 @@ toTaskState = \case



type Map = A.Object
type Map = HM.HashMap String String
2 changes: 1 addition & 1 deletion v1.41/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10756,4 +10756,4 @@ toTaskState = \case



type Map = A.Object
type Map = HM.HashMap String String
2 changes: 1 addition & 1 deletion v1.42/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11282,4 +11282,4 @@ toTaskState = \case



type Map = A.Object
type Map = HM.HashMap String String
2 changes: 1 addition & 1 deletion v1.43/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11315,4 +11315,4 @@ toTaskState = \case



type Map = A.Object
type Map = HM.HashMap String String
2 changes: 1 addition & 1 deletion v1.44/lib/DockerEngine/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11506,4 +11506,4 @@ toTaskState = \case



type Map = A.Object
type Map = HM.HashMap String String

0 comments on commit 842754d

Please sign in to comment.