Skip to content

Commit

Permalink
Tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
louthy committed Dec 22, 2024
1 parent 9e7a76e commit ebe04dc
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion LanguageExt.Core/Effects/IO/DSL/IOCatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using LanguageExt.Traits;
using LanguageExt.Common;

namespace LanguageExt;
namespace LanguageExt.DSL;

abstract record IOCatch<A> : IO<A>
{
Expand Down
2 changes: 1 addition & 1 deletion LanguageExt.Core/Effects/IO/DSL/IOCatchPop.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using LanguageExt.Traits;

namespace LanguageExt;
namespace LanguageExt.DSL;

record IOCatchPop<A>(IO<A> Next) : IO<A>
{
Expand Down
2 changes: 1 addition & 1 deletion LanguageExt.Core/Effects/IO/DSL/IOFold.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using LanguageExt.DSL;
using LanguageExt.Traits;

namespace LanguageExt;
namespace LanguageExt.DSL;

record IOFold<S, A, B>(
IO<A> Operation,
Expand Down
8 changes: 8 additions & 0 deletions LanguageExt.Core/Effects/IO/DSL/InvokeAsync.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System.Threading.Tasks;

namespace LanguageExt.DSL;

public abstract record InvokeAsync<A> : IO<A>
{
public abstract ValueTask<A> Invoke(EnvIO envIO);
}
8 changes: 8 additions & 0 deletions LanguageExt.Core/Effects/IO/DSL/InvokeAsyncIO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using System.Threading.Tasks;

namespace LanguageExt.DSL;

public abstract record InvokeAsyncIO<A> : IO<A>
{
public abstract ValueTask<IO<A>> Invoke(EnvIO envIO);
}
6 changes: 6 additions & 0 deletions LanguageExt.Core/Effects/IO/DSL/InvokeSync.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace LanguageExt.DSL;

public abstract record InvokeSync<A> : IO<A>
{
public abstract A Invoke(EnvIO envIO);
}
17 changes: 0 additions & 17 deletions LanguageExt.Core/Effects/IO/DSL/InvokeSyncIO.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
using System.Threading.Tasks;

namespace LanguageExt.DSL;

public abstract record InvokeSyncIO<A> : IO<A>
{
public abstract IO<A> Invoke(EnvIO envIO);
}

public abstract record InvokeAsyncIO<A> : IO<A>
{
public abstract ValueTask<IO<A>> Invoke(EnvIO envIO);
}

public abstract record InvokeSync<A> : IO<A>
{
public abstract A Invoke(EnvIO envIO);
}

public abstract record InvokeAsync<A> : IO<A>
{
public abstract ValueTask<A> Invoke(EnvIO envIO);
}
2 changes: 1 addition & 1 deletion LanguageExt.Core/Effects/IO/IO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ public async ValueTask<A> RunAsync(EnvIO? envIO = null)
var envRequiresDisposal = envIO is null;
envIO ??= EnvIO.New();
var ma = this;
var catches = Seq<Func<Exception, IO<A>>>();
var catches = Seq<Func<Exception, IO<A>>>();

try
{
Expand Down

0 comments on commit ebe04dc

Please sign in to comment.