Skip to content

Commit 467fb8c

Browse files
committed
PR cleanup
1 parent 6ac848a commit 467fb8c

File tree

9 files changed

+4
-45
lines changed

9 files changed

+4
-45
lines changed

src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Collections/CollectionModulesConsistency.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ open Utils
1010

1111
/// helper function that creates labeled FsCheck properties for equality comparisons
1212
let consistency name sqs ls arr =
13-
(sqs = arr) |@ (sprintf "Seq.%s = %A, Array.%s = %A" name sqs name arr) .&.
14-
(ls = arr) |@ (sprintf "List.%s = %A, Array.%s = %A" name ls name arr)
13+
(sqs = arr) |@ (sprintf "Seq.%s = '%A', Array.%s = '%A'" name sqs name arr) .&.
14+
(ls = arr) |@ (sprintf "List.%s = '%A', Array.%s = '%A'" name ls name arr)
1515

1616

1717
let allPairs<'a when 'a : equality> (xs : list<'a>) (xs2 : list<'a>) =

src/fsharp/FSharp.Core/array.fs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace Microsoft.FSharp.Collections
77
open System.Collections.Generic
88
open Microsoft.FSharp.Primitives.Basics
99
open Microsoft.FSharp.Core
10-
open Microsoft.FSharp.Core.DetailedExceptions
1110
open Microsoft.FSharp.Collections
1211
open Microsoft.FSharp.Core.Operators
1312
open Microsoft.FSharp.Core.CompilerServices

src/fsharp/FSharp.Core/array2.fs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ namespace Microsoft.FSharp.Collections
44

55
open System
66
open Microsoft.FSharp.Core
7-
open Microsoft.FSharp.Core.DetailedExceptions
87
open Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicOperators
98
open Microsoft.FSharp.Core.Operators
109
open Microsoft.FSharp.Core.Operators.Checked

src/fsharp/FSharp.Core/array3.fs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ namespace Microsoft.FSharp.Collections
55
open System.Diagnostics
66
open Microsoft.FSharp.Collections
77
open Microsoft.FSharp.Core
8-
open Microsoft.FSharp.Core.DetailedExceptions
98
open Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicOperators
109
open Microsoft.FSharp.Core.Operators
1110
open Microsoft.FSharp.Core.Operators.Checked

src/fsharp/FSharp.Core/list.fs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Microsoft.FSharp.Collections
44

55
open Microsoft.FSharp.Core
6-
open Microsoft.FSharp.Core.DetailedExceptions
76
open Microsoft.FSharp.Core.Operators
87
open Microsoft.FSharp.Core.LanguagePrimitives
98
open Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicOperators

src/fsharp/FSharp.Core/local.fs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
namespace Microsoft.FSharp.Core
5-
5+
[<AutoOpen>]
66
module internal DetailedExceptions =
77
open System
88
open Microsoft.FSharp.Core
@@ -74,7 +74,6 @@ module internal DetailedExceptions =
7474
namespace Microsoft.FSharp.Primitives.Basics
7575

7676
open Microsoft.FSharp.Core
77-
open Microsoft.FSharp.Core.DetailedExceptions
7877
open Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicOperators
7978
open Microsoft.FSharp.Collections
8079
open Microsoft.FSharp.Core.Operators

src/fsharp/FSharp.Core/local.fsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Microsoft.FSharp.Core
44
open Microsoft.FSharp.Core
55

6+
[<AutoOpen>]
67
module internal DetailedExceptions =
78
val inline invalidArgFmt: arg:string -> format:string -> paramArray:obj array -> _
89
val inline invalidOpFmt: format:string -> paramArray:obj array -> _

src/fsharp/FSharp.Core/seq.fs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ namespace Microsoft.FSharp.Collections
88
open System.Collections
99
open System.Collections.Generic
1010
open Microsoft.FSharp.Core
11-
open Microsoft.FSharp.Core.DetailedExceptions
1211
open Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicOperators
1312
open Microsoft.FSharp.Core.Operators
1413
open Microsoft.FSharp.Control
@@ -456,38 +455,6 @@ namespace Microsoft.FSharp.Collections
456455

457456
let bindG g cont = GenerateThen<_>.Bind(g,cont)
458457

459-
//let emptyG () =
460-
// { new Generator<_> with
461-
// member x.Apply = (fun () -> Stop)
462-
// member x.Disposer = None }
463-
//
464-
//let delayG f =
465-
// { new Generator<_> with
466-
// member x.Apply = fun () -> Goto(f())
467-
// member x.Disposer = None }
468-
//
469-
//let useG (v: System.IDisposable) f =
470-
// { new Generator<_> with
471-
// member x.Apply = (fun () ->
472-
// let g = f v in
473-
// // We're leaving this generator but want to maintain the disposal on the target.
474-
// // Hence chain it into the disposer of the target
475-
// Goto(chainDisposeG v.Dispose g))
476-
// member x.Disposer = Some (fun () -> v.Dispose()) }
477-
//
478-
//let yieldG (v:'T) =
479-
// let yielded = ref false
480-
// { new Generator<_> with
481-
// member x.Apply = fun () -> if !yielded then Stop else (yielded := true; Yield(v))
482-
// member x.Disposer = None }
483-
//
484-
//let rec whileG gd b = if gd() then bindG (b()) (fun () -> whileG gd b) else emptyG()
485-
//
486-
//let yieldThenG x b = bindG (yieldG x) b
487-
//
488-
//let forG (v: seq<'T>) f =
489-
// let e = v.GetEnumerator() in
490-
// whileG e.MoveNext (fun () -> f e.Current)
491458

492459
// Internal type. Drive an underlying generator. Crucially when the generator returns
493460
// a new generator we simply update our current generator and continue. Thus the enumerator
@@ -510,7 +477,6 @@ namespace Microsoft.FSharp.Collections
510477
// Defined as a type so we can optimize Enumerator/Generator chains in enumerateFromLazyGenerator
511478
// and GenerateFromEnumerator.
512479

513-
514480
[<Sealed>]
515481
type EnumeratorWrappingLazyGenerator<'T>(g:Generator<'T>) =
516482
let mutable g = g
@@ -565,7 +531,6 @@ namespace Microsoft.FSharp.Core.CompilerServices
565531
open System
566532
open System.Diagnostics
567533
open Microsoft.FSharp.Core
568-
open Microsoft.FSharp.Core.DetailedExceptions
569534
open Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicOperators
570535
open Microsoft.FSharp.Core.Operators
571536
open Microsoft.FSharp.Control
@@ -857,7 +822,6 @@ namespace Microsoft.FSharp.Collections
857822
open System.Collections.Generic
858823
open System.Reflection
859824
open Microsoft.FSharp.Core
860-
open Microsoft.FSharp.Core.DetailedExceptions
861825
open Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicOperators
862826
open Microsoft.FSharp.Core.Operators
863827
open Microsoft.FSharp.Core.CompilerServices

src/fsharp/FSharp.Core/string.fs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ namespace Microsoft.FSharp.Core
66
open System.Text
77
open Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicOperators
88
open Microsoft.FSharp.Core.Operators
9-
open Microsoft.FSharp.Core.DetailedExceptions
109
open Microsoft.FSharp.Core.Operators.Checked
1110
open Microsoft.FSharp.Collections
1211

0 commit comments

Comments
 (0)