Skip to content

Conversation

@turion
Copy link
Owner

@turion turion commented Dec 28, 2024

Several extra functions that should be useful in automaton

@turion turion force-pushed the dev_extend_automaton branch 3 times, most recently from 2a0fe0f to 4314a9e Compare December 30, 2024 08:16
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DerivingVia #-}

module Data.Automaton.Filter where
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haddock some motivation


-- FIXME some basic unit tests

newtype FilterAutomaton m f a b = FilterAutomaton {getFilterAutomaton :: Automaton m a (f b)}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haddock typical example types for f like lists, nonempty lists, Maybe, trees

@turion turion force-pushed the dev_extend_automaton branch 2 times, most recently from ad571a9 to 71111a0 Compare December 30, 2024 19:27
@turion turion force-pushed the dev_extend_automaton branch 2 times, most recently from ec91d9b to 9cbd803 Compare September 11, 2025 10:09
@f@ can also be a type that allows multiple positions, such as a list.
-}
newtype FilterAutomaton m f a b = FilterAutomaton
{ getFilterAutomaton :: Automaton m a (f b)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Semialign and Align instances

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And Witherable?

@turion turion force-pushed the dev_extend_automaton branch from 9cbd803 to 2c0a2d5 Compare October 7, 2025 18:24
@turion turion force-pushed the dev_extend_automaton branch from 2c0a2d5 to 149cf4e Compare October 9, 2025 15:31
@turion turion force-pushed the dev_extend_automaton branch from 149cf4e to 7df54f6 Compare October 20, 2025 06:42
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DerivingVia #-}

module Data.Automaton.Filter where
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I should implement this for Stream first, and then pull through to Automaton

@turion turion force-pushed the dev_extend_automaton branch from 7df54f6 to 0cc32d0 Compare October 20, 2025 07:13
@turion turion force-pushed the dev_extend_automaton branch from 0cc32d0 to bfd1fab Compare October 20, 2025 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant