Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/All.Mvc/Extensions/HtmlHelperExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// Wrap: Functional Monads for .NET
// Copyright (c) bfren - licensed under https://mit.bfren.dev/2019

using Microsoft.AspNetCore.Mvc.Rendering;

Check warning on line 4 in src/All.Mvc/Extensions/HtmlHelperExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Using directive is unnecessary.

Check warning on line 4 in src/All.Mvc/Extensions/HtmlHelperExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Using directive is unnecessary.

Check warning on line 4 in src/All.Mvc/Extensions/HtmlHelperExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Using directive is unnecessary.

namespace Wrap.Mvc;

/// <summary>
/// <see cref="IHtmlHelper"/> extension methods
/// </summary>
public static partial class HtmlHelperExtensions { }
3 changes: 0 additions & 3 deletions src/All.Mvc/Extensions/ListExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// Wrap: Functional Monads for .NET
// Copyright (c) bfren - licensed under https://mit.bfren.dev/2019

using System.Collections.Generic;

Check warning on line 4 in src/All.Mvc/Extensions/ListExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Using directive is unnecessary.

Check warning on line 4 in src/All.Mvc/Extensions/ListExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Using directive is unnecessary.

Check warning on line 4 in src/All.Mvc/Extensions/ListExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Using directive is unnecessary.

namespace Wrap.Mvc;

/// <summary>
/// <see cref="IList{IModelBinderProvider}"/> extension methods
/// </summary>
public static partial class ListExtensions { }
3 changes: 3 additions & 0 deletions src/All.Mvc/WrapModelBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

namespace Wrap.Mvc;

/// <summary>
/// Model binder for monad types in ASP.NET Core MVC.
/// </summary>
internal static class WrapModelBinderHelpers
{
internal static JsonSerializerOptions Options { get; private set; }
Expand Down
6 changes: 6 additions & 0 deletions src/All/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

namespace Wrap;

/// <summary>
/// Internal constants used throughout the Wrap library for error messages and validation.
/// </summary>
internal static class C
{
internal const string NoneFailureMessage = "Maybe<{Type}> was 'None'.";
Expand All @@ -11,6 +14,9 @@ internal static class C

internal const string TestFalseMessage = "Test returned false.";

/// <summary>
/// Contains error messages for single element retrieval operations.
/// </summary>
internal static class GetSingle
{
internal const string EmptyList =
Expand Down
3 changes: 0 additions & 3 deletions src/All/Extensions/DictionaryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="System.Collections.Generic.IDictionary{TKey, TValue}"/> objects.
/// </summary>
public static partial class DictionaryExtensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/EitherExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="Either{TLeft, TRight}"/> objects.
/// </summary>
public static partial class EitherExtensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/EnumerableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="System.Collections.Generic.IEnumerable{T}"/> objects.
/// </summary>
public static partial class EnumerableExtensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/GuidExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="System.Guid"/> objects.
/// </summary>
public static partial class GuidExtensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/Int32Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="int"/> objects.
/// </summary>
public static partial class Int32Extensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/Int64Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="long"/> objects.
/// </summary>
public static partial class Int64Extensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/MaybeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="Maybe{T}"/> objects.
/// </summary>
public static partial class MaybeExtensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/MonadExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="Monad{T}"/> objects.
/// </summary>
public static partial class MonadExtensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/ResultExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="Result{T}"/> objects.
/// </summary>
public static partial class ResultExtensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/UInt32Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="uint"/> objects.
/// </summary>
public static partial class UInt32Extensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/UInt64Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="ulong"/> objects.
/// </summary>
public static partial class UInt64Extensions { }
3 changes: 0 additions & 3 deletions src/All/Extensions/UnsafeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for <see cref="Unsafe{TEither, TLeft, TRight}"/> objects.
/// </summary>
public static partial class UnsafeExtensions { }
3 changes: 0 additions & 3 deletions src/All/Json/Extensions/ListExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// Wrap: Functional Monads for .NET
// Copyright (c) bfren - licensed under https://mit.bfren.dev/2019

using System.Collections.Generic;

Check warning on line 4 in src/All/Json/Extensions/ListExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Using directive is unnecessary.

Check warning on line 4 in src/All/Json/Extensions/ListExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Using directive is unnecessary.

Check warning on line 4 in src/All/Json/Extensions/ListExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Using directive is unnecessary.

namespace Wrap.Json;

/// <summary>
/// <see cref="IList{JsonConverter}"/> extension methods.
/// </summary>
public static partial class ListExtensions { }
3 changes: 0 additions & 3 deletions src/All/Linq/MaybeToMaybeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Linq;

/// <summary>
/// Extension methods enabling LINQ syntax for <see cref="Maybe{T}"/> objects.
/// </summary>
public static partial class MaybeToMaybeExtensions { }
4 changes: 0 additions & 4 deletions src/All/Linq/MaybeToResultExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@

namespace Wrap.Linq;

/// <summary>
/// Extension methods enabling LINQ syntax for converting <see cref="Maybe{T}"/>
/// objects to <see cref="Result{T}"/> objects.
/// </summary>
public static partial class MaybeToResultExtensions { }
3 changes: 0 additions & 3 deletions src/All/Linq/ResultExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Linq;

/// <summary>
/// Extension methods enabling LINQ syntax for <see cref="Result{T}"/>.
/// </summary>
public static partial class ResultExtensions { }
3 changes: 0 additions & 3 deletions src/Common/Extensions/ObjectExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Extensions;

/// <summary>
/// Extension methods for all objects.
/// </summary>
public static partial class ObjectExtensions { }

Check warning on line 6 in src/Common/Extensions/ObjectExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Missing XML comment for publicly visible type or member 'ObjectExtensions'

Check warning on line 6 in src/Common/Extensions/ObjectExtensions.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Missing XML comment for publicly visible type or member 'ObjectExtensions'
3 changes: 0 additions & 3 deletions src/Common/F.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@

namespace Wrap;

/// <summary>
/// Pure functions for interacting with Monad types.
/// </summary>
public static partial class F

Check warning on line 9 in src/Common/F.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Missing XML comment for publicly visible type or member 'F'

Check warning on line 9 in src/Common/F.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Missing XML comment for publicly visible type or member 'F'
{
/// <summary>
/// Default culture (en-GB) - used when working with strings.
Expand Down
3 changes: 0 additions & 3 deletions src/Either/E.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap;

/// <summary>
/// Pure functions for interacting with <see cref="Either{TLeft, TRight}"/> types.
/// </summary>
public static partial class E { }

Check warning on line 6 in src/Either/E.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Missing XML comment for publicly visible type or member 'E'

Check warning on line 6 in src/Either/E.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Missing XML comment for publicly visible type or member 'E'
3 changes: 0 additions & 3 deletions src/Maybe.Testing/MaybeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Testing;

/// <summary>
/// Extension methods for <see cref="Maybe{T}"/> objects.
/// </summary>
public static partial class MaybeExtensions { }
3 changes: 0 additions & 3 deletions src/Maybe/M.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

namespace Wrap;

/// <summary>
/// Pure functions for interacting with <see cref="Maybe{T}"/> types.
/// </summary>
public static partial class M
{
/// <summary>
Expand Down
4 changes: 0 additions & 4 deletions src/Maybe/Maybe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

namespace Wrap;

/// <summary>
/// Maybe monad.
/// </summary>
/// <typeparam name="T">Some value type.</typeparam>
public abstract partial record class Maybe<T> : IEither<Maybe<T>, None, T>, IEquatable<Maybe<T>>
{
/// <summary>
Expand Down
3 changes: 0 additions & 3 deletions src/Result.Testing/FailureValueExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Testing;

/// <summary>
/// Extension methods for <see cref="FailureValue"/> objects.
/// </summary>
public static partial class FailureValueExtensions { }
3 changes: 0 additions & 3 deletions src/Result.Testing/ResultExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

namespace Wrap.Testing;

/// <summary>
/// Extension methods for <see cref="Result{T}"/> objects.
/// </summary>
public static partial class ResultExtensions { }
3 changes: 3 additions & 0 deletions src/Result/Failure.Equatable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

namespace Wrap;

/// <summary>
/// Represents failure.
/// </summary>
public readonly partial struct Failure
{
/// <inheritdoc/>
Expand Down
3 changes: 0 additions & 3 deletions src/Result/R.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

namespace Wrap;

/// <summary>
/// Pure functions for interacting with <see cref="Result{TOk}"/> objects.
/// </summary>
public static partial class R
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Result/Result.FailureImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Wrap;
public abstract partial record class Result<T>
{
/// <summary>
/// Internal implementation of <see cref="Result{T}"/> to
/// Internal implementation of <see cref="Result{T}"/> representing a failure state.
/// </summary>
internal sealed record class FailureImpl : Result<T>, ILeft<FailureValue, T>
{
Expand Down
4 changes: 0 additions & 4 deletions src/Result/Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@

namespace Wrap;

/// <summary>
/// Result monad.
/// </summary>
/// <typeparam name="T">Ok value type.</typeparam>
public abstract partial record class Result<T> : IEither<Result<T>, FailureValue, T>, IEquatable<Result<T>>

Check warning on line 10 in src/Result/Result.cs

View workflow job for this annotation

GitHub Actions / restore-build-test

Missing XML comment for publicly visible type or member 'Result<T>'
{
/// <summary>
/// Returns true if this object is a <see cref="Failure"/>.
Expand Down
Loading