Skip to content

Commit

Permalink
Upgrade ocamlformat.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgilchrist committed Oct 30, 2023
1 parent 6b72f2e commit f9cc941
Show file tree
Hide file tree
Showing 2,179 changed files with 1,926 additions and 12,583 deletions.
2 changes: 1 addition & 1 deletion .ocamlformat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.19.0
version=0.24.1
break-cases=toplevel
break-fun-decl=fit-or-vertical
break-infix=fit-or-vertical
Expand Down
1 change: 1 addition & 0 deletions .ocamlformat-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/syntax.ml
8 changes: 1 addition & 7 deletions lib/aws.ml
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,15 @@ module Signing = Signing

module type Call = sig
type input

type output

type error

val signature_version : Request.signature_version

val service : string

val to_http : string -> string -> input -> Request.t

val of_http : string -> [ `Ok of output | `Error of error Error.error_response ]

val parse_error : int -> string -> error option
end

type ('i, 'o, 'e) call =
(module Call with type input = 'i and type output = 'o and type error = 'e)
(module Call with type input = 'i and type output = 'o and type error = 'e)
17 changes: 0 additions & 17 deletions lib/aws.mli
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ module Time : sig
format. *)

val date_time_iso8601 : CalendarLib.Calendar.t -> string

val now_utc : unit -> CalendarLib.Calendar.t

val format : CalendarLib.Calendar.t -> string
Expand Down Expand Up @@ -291,11 +290,8 @@ end
module Signing : sig
module Hash : sig
val _sha256 : ?key:string -> string -> Digestif.SHA256.t

val sha256 : ?key:string -> string -> string

val sha256_hex : ?key:string -> string -> string

val sha256_base64 : ?key:string -> string -> string
end

Expand Down Expand Up @@ -352,34 +348,21 @@ module BaseTypes : sig
type t

val to_json : t -> Json.t

val of_json : Json.t -> t

val to_query : t -> Query.t

val parse : Ezxmlm.nodes -> t option

val to_string : t -> string

val of_string : string -> t
end

module Unit : Base with type t = unit

module String : Base with type t = string

module Blob : Base with type t = string

module Boolean : Base with type t = bool

module Integer : Base with type t = int

module Long : Base with type t = int

module Double : Base with type t = float

module Float : Base with type t = float

module DateTime : Base with type t = CalendarLib.Calendar.t
end

Expand Down
3,968 changes: 1,921 additions & 2,047 deletions lib/endpoints.ml

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/attachInstances.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = AttachInstancesQuery.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/attachInstances.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = AttachInstancesQuery.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/attachLoadBalancers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = AttachLoadBalancersType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/attachLoadBalancers.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = AttachLoadBalancersType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/completeLifecycleAction.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = CompleteLifecycleActionType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/completeLifecycleAction.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = CompleteLifecycleActionType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/createAutoScalingGroup.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = CreateAutoScalingGroupType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/createAutoScalingGroup.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = CreateAutoScalingGroupType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/createLaunchConfiguration.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = CreateLaunchConfigurationType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/createLaunchConfiguration.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = CreateLaunchConfigurationType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/createOrUpdateTags.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = CreateOrUpdateTagsType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/createOrUpdateTags.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = CreateOrUpdateTagsType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/deleteAutoScalingGroup.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = DeleteAutoScalingGroupType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/deleteAutoScalingGroup.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = DeleteAutoScalingGroupType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/deleteLaunchConfiguration.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = LaunchConfigurationNameType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/deleteLaunchConfiguration.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = LaunchConfigurationNameType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/deleteLifecycleHook.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = DeleteLifecycleHookType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/deleteLifecycleHook.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = DeleteLifecycleHookType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/deleteNotificationConfiguration.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = DeleteNotificationConfigurationType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/deleteNotificationConfiguration.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = DeleteNotificationConfigurationType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/deletePolicy.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = DeletePolicyType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/deletePolicy.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = DeletePolicyType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/deleteScheduledAction.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = DeleteScheduledActionType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/deleteScheduledAction.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = DeleteScheduledActionType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
3 changes: 0 additions & 3 deletions libraries/autoscaling/lib/deleteTags.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ open Types
open Aws

type input = DeleteTagsType.t

type output = unit

type error = Errors_internal.t

let service = "autoscaling"

let signature_version = Request.V4

let to_http service region req =
Expand Down
2 changes: 0 additions & 2 deletions libraries/autoscaling/lib/deleteTags.mli
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
open Types

type input = DeleteTagsType.t

type output = unit

type error = Errors_internal.t

include
Expand Down
Loading

0 comments on commit f9cc941

Please sign in to comment.