Skip to content

Commit

Permalink
rename to FSharpx.Extras and modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyme committed Mar 31, 2015
1 parent acd23f0 commit ee6ba78
Show file tree
Hide file tree
Showing 60 changed files with 121 additions and 427 deletions.
8 changes: 5 additions & 3 deletions FSharpx.Core.Tests/AwaitObservableTests.fs
Expand Up @@ -4,10 +4,12 @@ open System
open System.Threading
open System.Threading.Tasks

open FSharpx.Control.Observable

open FsUnit
open NUnit.Framework
open FSharpx.Control
open FSharpx.Control.AsyncExtensions
open FSharpx.Control.StreamReaderExtensions
open FSharpx.Control.Observable

[<TestFixture>]
type ``AwaitObservable Tests``() =
Expand All @@ -26,7 +28,7 @@ type ``AwaitObservable Tests``() =
[<Test; Ignore("Failing on appveyor ('A continuation provided by Async.FromContinuations was invoked multiple times')") >]
member test.``AwaitObservable yields the first value from the sources Next``() =
let source = new ObservableMock<string>()
let wf = Async.AwaitObservable source
let wf = Async .AwaitObservable source
let awaiter = startAsAwaiter wf
source.AssertSubscribtion(TimeSpan.FromSeconds(1.0))
source.Next("ONE")
Expand Down
8 changes: 8 additions & 0 deletions FSharpx.Core.Tests/FSharpx.Core.Tests.fsproj
Expand Up @@ -49,6 +49,14 @@
</PropertyGroup>
<Import Project="$(FSharpTargetsPath)" Condition="Exists('$(FSharpTargetsPath)')" />
<ItemGroup>
<Reference Include="FSharp.Control.AsyncSeq">
<HintPath>..\packages\FSharp.Control.AsyncSeq.1.15.0\lib\net40\FSharp.Control.AsyncSeq.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FSharpx.Async">
<HintPath>..\packages\FSharpx.Async.1.12.0\lib\net40\FSharpx.Async.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FSharpx.Collections">
<HintPath>..\packages\FSharpx.Collections.1.9.4\lib\net35\FSharpx.Collections.dll</HintPath>
<Private>True</Private>
Expand Down
2 changes: 1 addition & 1 deletion FSharpx.Core.Tests/app.config
Expand Up @@ -4,7 +4,7 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.1.0" />
<bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Expand Down
2 changes: 2 additions & 0 deletions FSharpx.Core.Tests/packages.config
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FSharp.Control.AsyncSeq" version="1.15.0" targetFramework="net40" />
<package id="FSharpx.Async" version="1.12.0" targetFramework="net40" />
<package id="FSharpx.Collections" version="1.9.4" targetFramework="net40" />
<package id="FsUnit" version="1.2.1.0" targetFramework="net40" />
<package id="NUnit" version="2.6.2" targetFramework="net40" />
Expand Down
69 changes: 1 addition & 68 deletions FSharpx.sln
@@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30501.0
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{722621A6-FA45-4129-8B8D-94880DCD7971}"
ProjectSection(SolutionItems) = preProject
Expand Down Expand Up @@ -39,14 +39,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{EFB3
docs\content\WebProxy.fsx = docs\content\WebProxy.fsx
EndProjectSection
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharpx.Http", "src\FSharpx.Http\FSharpx.Http.fsproj", "{60F3BB81-5449-45DD-A217-B6045327680C}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharpx.Http.Tests", "tests\FSharpx.Http.Tests\FSharpx.Http.Tests.fsproj", "{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharpx.Observable", "src\FSharpx.Observable\FSharpx.Observable.fsproj", "{2E802F54-9CD0-4B0A-B834-5C5979403B50}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FSharpx.Observable.Tests", "tests\FSharpx.Observable.Tests\FSharpx.Observable.Tests.csproj", "{13CF1E8D-D712-4031-8EEF-414534CC234E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{04FE33E9-D53A-4703-B86B-C84B64958D19}"
ProjectSection(SolutionItems) = preProject
.nuget\NuGet.Config = .nuget\NuGet.Config
Expand Down Expand Up @@ -119,65 +111,6 @@ Global
{1E95A279-C2A9-498B-BC72-6E7A0D6854CE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{1E95A279-C2A9-498B-BC72-6E7A0D6854CE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{1E95A279-C2A9-498B-BC72-6E7A0D6854CE}.Release|x86.ActiveCfg = Release|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.DataStructures|Any CPU.ActiveCfg = Debug|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.DataStructures|Any CPU.Build.0 = Debug|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.DataStructures|Mixed Platforms.ActiveCfg = Debug|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.DataStructures|Mixed Platforms.Build.0 = Debug|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.DataStructures|x86.ActiveCfg = Debug|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.Debug|x86.ActiveCfg = Debug|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.Release|Any CPU.Build.0 = Release|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{60F3BB81-5449-45DD-A217-B6045327680C}.Release|x86.ActiveCfg = Release|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.DataStructures|Any CPU.ActiveCfg = Debug|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.DataStructures|Any CPU.Build.0 = Debug|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.DataStructures|Mixed Platforms.ActiveCfg = Debug|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.DataStructures|Mixed Platforms.Build.0 = Debug|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.DataStructures|x86.ActiveCfg = Debug|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.Debug|x86.ActiveCfg = Debug|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.Release|Any CPU.Build.0 = Release|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{3D1FCA4C-757E-4AD0-9E4B-4101C8AFCCA4}.Release|x86.ActiveCfg = Release|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.DataStructures|Any CPU.ActiveCfg = Debug|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.DataStructures|Any CPU.Build.0 = Debug|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.DataStructures|Mixed Platforms.ActiveCfg = Debug|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.DataStructures|Mixed Platforms.Build.0 = Debug|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.DataStructures|x86.ActiveCfg = Debug|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.Debug|x86.ActiveCfg = Debug|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.Release|Any CPU.Build.0 = Release|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{2E802F54-9CD0-4B0A-B834-5C5979403B50}.Release|x86.ActiveCfg = Release|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.DataStructures|Any CPU.ActiveCfg = DataStructures|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.DataStructures|Any CPU.Build.0 = DataStructures|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.DataStructures|Mixed Platforms.ActiveCfg = DataStructures|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.DataStructures|x86.ActiveCfg = DataStructures|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.Debug|x86.ActiveCfg = Debug|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.Release|Any CPU.Build.0 = Release|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{13CF1E8D-D712-4031-8EEF-414534CC234E}.Release|x86.ActiveCfg = Release|Any CPU
{AD500A06-96ED-408C-9472-262CDC2A119B}.DataStructures|Any CPU.ActiveCfg = Debug|Any CPU
{AD500A06-96ED-408C-9472-262CDC2A119B}.DataStructures|Any CPU.Build.0 = Debug|Any CPU
{AD500A06-96ED-408C-9472-262CDC2A119B}.DataStructures|Mixed Platforms.ActiveCfg = Debug|Any CPU
Expand Down
43 changes: 12 additions & 31 deletions build.fsx
Expand Up @@ -15,13 +15,13 @@ RestorePackage()

// properties
let currentDate = System.DateTime.UtcNow
let projectName = "FSharpx"
let projectName = "FSharpx.Extras"

let coreSummary = "FSharpx is a library for the .NET platform implementing general functional constructs on top of the F# core library."
let projectSummary = "FSharpx is a library for the .NET platform implementing general functional constructs on top of the F# core library."
let coreSummary = "FSharpx.Extras is a library for the .NET platform implementing general functional constructs on top of the F# core library."
let projectSummary = "FSharpx.Extras is a library for the .NET platform implementing general functional constructs on top of the F# core library."
let authors = ["Steffen Forkmann"; "Daniel Mohl"; "Tomas Petricek"; "Ryan Riley"; "Mauricio Scheffer"; "Phil Trelford" ]
let mail = "ryan.riley@panesofglass.org"
let homepage = "http://github.com/fsprojects/fsharpx"
let homepage = "http://github.com/fsprojects/FSharpx.Extras"

// .NET Frameworks
let net35 = "v3.5"
Expand All @@ -38,13 +38,11 @@ let nugDir = "./nuget"
let nugetDir package = nugDir @@ package
let nugetLibDir package = nugetDir package @@ "lib"

let packages = ["Core"; "Http"; "Observable"; "Text.StructuredFormat"]
let packages = ["Extras"; "Text.StructuredFormat"]

let projectDesc = "FSharpx is a library for the .NET platform implementing general functional constructs on top of the F# core library. Its main target is F# but it aims to be compatible with all .NET languages wherever possible."
let projectDesc = "FSharpx.Extras implements general functional constructs on top of the F# core library. Its main target is F# but it aims to be compatible with all .NET languages wherever possible."

let rec getPackageDesc = function
| "Http" -> projectDesc + "\r\n\r\nThis library provides common features for working with HTTP applications."
| "Observable" -> projectDesc + "\r\n\r\nThis library implements a mini-Reactive Extensions (MiniRx) and was authored by Phil Trelford."
| "Text.StructuredFormat" -> projectDesc + "\r\n\r\nThis library provides data structures and functoins for pretty printers."
| _ -> projectDesc + "\r\n\r\nIt currently implements:\r\n\r\n" +
"* Several standard monads: State, Reader, Writer, Either, Continuation, Distribution\r\n" +
Expand All @@ -58,7 +56,7 @@ let rec getPackageDesc = function
let gitHome = "https://github.com/fsprojects"

// The name of the project on GitHub
let gitName = "fsharpx"
let gitName = "FSharpx.Extras"

// The url for the raw files hosted
let gitRaw = environVarOrDefault "gitRaw" "https://raw.github.com/fsprojects"
Expand Down Expand Up @@ -94,27 +92,10 @@ Target "AssemblyInfo" (fun _ ->
CodeLanguage = FSharp
AssemblyVersion = release.AssemblyVersion
AssemblyTitle = projectName
AssemblyDescription = getPackageDesc "Core"
AssemblyDescription = getPackageDesc "Extras"
Guid = "1e95a279-c2a9-498b-bc72-6e7a0d6854ce"
OutputFileName = "./src/FSharpx.Core/AssemblyInfo.fs" })
OutputFileName = "./src/FSharpx.Extras/AssemblyInfo.fs" })

AssemblyInfo (fun p ->
{p with
CodeLanguage = FSharp
AssemblyVersion = release.AssemblyVersion
AssemblyTitle = "FSharpx.Http"
AssemblyDescription = getPackageDesc "Http"
Guid = "60F3BB81-5449-45DD-A217-B6045327680C"
OutputFileName = "./src/FSharpx.Http/AssemblyInfo.fs" })

AssemblyInfo (fun p ->
{p with
CodeLanguage = FSharp
AssemblyVersion = release.AssemblyVersion
AssemblyTitle = "FSharpx.Observable"
AssemblyDescription = getPackageDesc "Observable"
Guid = "2E802F54-9CD0-4B0A-B834-5C5979403B50"
OutputFileName = "./src/FSharpx.Observable/AssemblyInfo.fs" })

AssemblyInfo (fun p ->
{p with
Expand Down Expand Up @@ -177,10 +158,10 @@ Target "NuGet" (fun _ ->
Publish = hasBuildParam "nugetkey"
ToolPath = nugetPath
Dependencies =
if package = "Core" then p.Dependencies
if package = "Extras" then p.Dependencies
else
[projectName + ".Core", RequireExactly (NormalizeVersion release.AssemblyVersion)] })
"FSharpx.Core.nuspec")
["FSharpx.Extras", RequireExactly (NormalizeVersion release.AssemblyVersion)] })
"FSharpx.Extras.nuspec")



Expand Down
8 changes: 4 additions & 4 deletions docs/content/index.fsx
Expand Up @@ -20,16 +20,16 @@ FSharpx.Core currently implements:
* Functions to make C# - F# interop easier.
FSharpx.Core is a set of additions on top of FSharpx.Collections
* FSharpx.Http provides a few features for working with HTTP applications.
FSharpx.Core is a set of additions on top of FSharpx.Collections and FSharpx.Async
## Extras
These are some adhoc components which are now rarely used:
* FSharpx.Http provides a few features for working with HTTP applications.
* FSharpx.Observable implements a mini-Reactive Extensions (MiniRx) and was authored by Phil Trelford.
* FSharpx.Text.StructuredFormat provides data structures and functoins for pretty printers.
* FSharpx.Text.StructuredFormat provides data structures and functions for pretty printers.
*)
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/generate.fsx
Expand Up @@ -12,7 +12,7 @@ let githubLink = "https://github.com/fsprojects/fsharpx"

// Specify more information about your project
let info =
[ "project-name", "fsharpx"
[ "project-name", "FSharpx.Functional"
"project-author", "Steffan Forkmann and others"
"project-summary", "Extra components for FSharpx"
"project-github", githubLink
Expand Down
2 changes: 1 addition & 1 deletion src/FSharpx.Core/AssemblyInfo.fs
Expand Up @@ -20,7 +20,7 @@ exception ReturnNoneException183c26a427ae489c8fd92ec21a0c9a59

[<assembly: AssemblyTitle ("FSharpx")>]

[<assembly: AssemblyDescription ("FSharpx is a library for the .NET platform implementing general functional constructs on top of the F# core library. Its main target is F# but it aims to be compatible with all .NET languages wherever possible.
[<assembly: AssemblyDescription ("FSharpx.Core and FSharpx.Functional implement general functional constructs on top of the F# core library. Its main target is F# but it aims to be compatible with all .NET languages wherever possible.
It currently implements:
Expand Down
3 changes: 2 additions & 1 deletion src/FSharpx.Core/CSharpCompat.fs
Expand Up @@ -5,8 +5,9 @@ open System.IO
open System.Net
open System.Collections.Generic
open System.Runtime.CompilerServices
open FSharpx.Control.StreamReaderExtensions
open FSharpx.Collections
open FSharpx.Functional
open FSharpx.Control
open FSharpx


Expand Down
1 change: 1 addition & 0 deletions src/FSharpx.Core/ComputationExpressions/Continuation.fs
Expand Up @@ -3,6 +3,7 @@
open System
open System.Collections.Generic
open FSharpx.Collections
open FSharpx.Functional

/// The continuation monad.
/// The algorithm is from Wes Dyer http://blogs.msdn.com/b/wesdyer/archive/2008/01/11/the-marvels-of-monads.aspx.
Expand Down
2 changes: 0 additions & 2 deletions src/FSharpx.Core/ComputationExpressions/Enumerator.fs
Expand Up @@ -3,9 +3,7 @@ namespace FSharpx.Functional
open System
open System.Collections
open System.Collections.Generic
#if NET40
open System.Diagnostics.Contracts
#endif
open System.Runtime.CompilerServices

module Enumerator =
Expand Down
3 changes: 1 addition & 2 deletions src/FSharpx.Core/ComputationExpressions/Monad.fs
Expand Up @@ -6,6 +6,7 @@ open System
open System.Collections
open System.Collections.Generic
open FSharpx.Collections
open FSharpx.Functional


/// Generic monadic operators
Expand Down Expand Up @@ -906,7 +907,6 @@ module Validation =

let inline mapM f x = sequence (List.map f x)

#if NET40

module Task =
open System.Threading
Expand Down Expand Up @@ -1074,4 +1074,3 @@ module Task =

member this.Delay f = this.Bind(this.Return (), f)

#endif
File renamed without changes.
10 changes: 10 additions & 0 deletions src/FSharpx.Core/FSharpx.Core.fsproj
Expand Up @@ -84,8 +84,14 @@
<Compile Include="CSharpCompat.fs" />
<Content Include="packages.config" />
<Content Include="app.config" />
<Compile Include="Net.fs" />
<Compile Include="Conneg.fs" />
</ItemGroup>
<ItemGroup>
<Reference Include="FSharp.Control.AsyncSeq">
<HintPath>..\..\packages\FSharp.Control.AsyncSeq.1.15.0\lib\net40\FSharp.Control.AsyncSeq.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FSharp.Core, Version=$(TargetFSharpCoreVersion), Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Condition="'$(TargetFrameworkProfile)' == ''">
<Private>False</Private>
</Reference>
Expand All @@ -95,6 +101,10 @@
<AssemblyName>FSharp.Core.dll</AssemblyName>
<HintPath>$(MSBuildExtensionsPath32)\..\Reference Assemblies\Microsoft\FSharp\.NETPortable\$(TargetFSharpCoreVersion)\FSharp.Core.dll</HintPath>
</Reference>
<Reference Include="FSharpx.Async">
<HintPath>..\..\packages\FSharpx.Async.1.12.0\lib\net40\FSharpx.Async.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FSharpx.Collections" Condition="'$(TargetFrameworkProfile)' == ''">
<HintPath>..\..\packages\FSharpx.Collections.1.9.4\lib\net35\FSharpx.Collections.dll</HintPath>
<Private>True</Private>
Expand Down
14 changes: 1 addition & 13 deletions src/FSharpx.Core/Iteratee.fs
Expand Up @@ -5,7 +5,7 @@ open System
open System.Collections
open System.Collections.Generic
open FSharpx.Collections
open FSharpx.Control
open FSharp.Control

(*
# Iteratee
Expand Down Expand Up @@ -700,18 +700,6 @@ module Iteratee =
| Continue k -> let x, xs = ByteString.head str, ByteString.tail str in enumerate xs (k (Chunk (ByteString.singleton x)))
| _ -> i

// TODO: Both source and sink should include a close function or IDisposable.
// NOTE: source and sink could implement IObservable and IObserver, respectively, though that could be misleading as they are intended to be used together.
let rec connect sink source = async {
match sink with
// Delay pulling from the source until we know that the sink needs data.
| Continue k ->
let! res = source
match res with
| AsyncSeqInner.Nil -> return run sink, AsyncSeq.empty
| Cons(s1, s2) -> return! connect (k (Chunk s1)) s2
| _ -> return run sink, source
}

// val repeat :: byte -> Enumerator<ByteString, 'T>
let repeat a = checkContinue0 (fun loop k -> loop (k (Chunk (ByteString.singleton a))))
Expand Down
2 changes: 2 additions & 0 deletions src/FSharpx.Core/Lens.fs
@@ -1,6 +1,8 @@
namespace FSharpx.Functional

open FSharpx
open FSharpx.Collections
open FSharpx.Functional

type Lens<'T,'U> =
{ Get: 'T -> 'U
Expand Down
3 changes: 2 additions & 1 deletion src/FSharpx.Http/Net.fs → src/FSharpx.Core/Net.fs
Expand Up @@ -11,7 +11,8 @@ open System.Text
open System.Threading

open FSharpx.IO
open FSharpx.Control
open FSharpx.Async
open FSharp.Control

// ----------------------------------------------------------------------------
// Extensions that simplify working with HttpListener and related types
Expand Down

0 comments on commit ee6ba78

Please sign in to comment.