linear-base VS text

Compare linear-base vs text and see what are their differences.

linear-base

Standard library for linear types in Haskell. (by tweag)

text

Haskell library for space- and time-efficient operations over Unicode text. (by haskell)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
linear-base text
10 13
333 395
1.2% 0.5%
5.9 8.4
9 days ago about 6 hours ago
Haskell C++
MIT License BSD 2-clause "Simplified" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

linear-base

Posts with mentions or reviews of linear-base. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-11.
  • What is the longterm status of -XLinearTypes ?
    2 projects | /r/haskell | 11 Mar 2022
    Thanks for your interest in linear types. The sort of overarching answer is that the Covid crisis has put a serious wrench in our plans. There has been very little progress on the implementation in the past 2 years, I'm afraid. I hope to slowly pick up the pace again this year. But I make no promise as to specific plans just yet. When we have more visibility, we will publish a roadmap. This is not to say that nothing has happened at all: linear-base is getting a pretty significant release any day now, David Feuer (no affiliated with Tweag) has created linear-generics, an implementation of Generic which is compatible with linear types (there is a surprisingly subtle issue with Generic1, in particular, that I don't understand very well, so won't try to explain), we co-wrote two academic articles as well.
  • Monthly Hask Anything (March 2021)
    2 projects | /r/haskell | 11 Mar 2021
    Handle is defined in terms of UnsafeResource (in linear-base). This is where the linearity checking "stops". If you pattern match an UnsafeResource then you have to make sure that you correctly close/free it. Luckily, this only has to be implemented once in an internal module and is not exported in the public interface.
  • Tweag - linear-base makes writing Linear Haskell easy and fun
    2 projects | /r/haskell | 11 Feb 2021
    If you are referring to the specific relative monads discussed in this issue. We'll need to improve inference in the compiler first.
    2 projects | /r/haskell | 11 Feb 2021
    The optics sublibrary is not very developed yet. Because our arrays, which are one of the principal use-case, require a special kind of lens which we haven't managed to produce without too much code duplication yet. The design space is discussed in this issue.
  • Monthly Hask Anything (January 2021)
    3 projects | /r/haskell | 31 Dec 2020
    So to write a function f :: a %1 -> () you have to traverse the whole datatype a, see the Data.Unrestricted.Internal.Consumable and Data.Unrestricted.Internal.Instances, which introduces a type class consumable which implements exactly this functionality.
  • Ephemeral Purely Functional Data Structure And
    2 projects | /r/haskell | 30 Dec 2020
    I think the solution to the problem with empty might be to use the Ur (for "unrestricted") datatype from linear-base:
    2 projects | /r/haskell | 30 Dec 2020
    Trying to run empty Ur shouldn't typecheck, because the Ur constructor is not linear. This seems to be an idiom used in other places of linear-base.

text

Posts with mentions or reviews of text. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-25.

What are some alternatives?

When comparing linear-base and text you can also consider the following projects:

attempt - Concrete data type for handling extensible exceptions as failures.

base58string - Bitcoin script compilation, manipulation and decompilation

algebraic-classes - Conversions between algebraic classes and F-algebras.

text-trie - An efficient finite map from Text to values, based on bytestring-trie.

gps2htmlReport - Generates a HTML page report detailing a GPS journey, with charts, statistics and an OpenStreetMap graphic.

text-binary - Binary instances for strict and lazy Text data types

CTRex - Open records for Haskell

text-ansi

leetify - Leetify some text!

data-foldapp - Haskell library for folding function applications. A framework for variadic functions.

text-short - Memory-efficient representation of Unicode text strings

text-icu - This package provides the Haskell Data.Text.ICU library, for performing complex manipulation of Unicode text.