Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Oh, Agda. Didn't realise the kata was available in multiple languages, sorry.
What?
language?
The
open Language {{...}}
line in the template should be madepublic
so that the tests work.I see.
RankNTypes
should be made available forTupleSections
to work. The above error will occur when{-# LANGUAGE RankNTypes #-}
is missing. Sorry for the stupid question.How to avoid the following error on the test case
Cannot use Control.Lens
? I did not import anything that relates toControl.Lens
.Also known as a difference list. If you're looking for hints, Hughes lists, when run, will not overwrite the list they take as an input.
Very scary, but surprisingly pretty easy, just follow the types (some of them are singletons !)
Really nice kata, thanks tel !
It is satisfctory, but I wish it could give more thorough explanation and type replacements.
Especially, how each part of it works. (And what actually is a profunctor)
which is true with and without the parentheses because of Haskell's autocurrying. But I agree that the parentheses should be omitted as they do nothing.
what's mean a type? use not a
newtype K b a = K { getK :: b } deriving Functor
Very nice. Managed to follow almost all of it, but still don't quite get prisms. Follow the types!
It would be nice if the declaration of
interp
was changed tointerp :: (Name -> Maybe String) -> Phalanx -> Maybe String
as the current one suggests that it receives a function(Name -> Maybe String)
and returns another function(Phalanx -> Maybe String)
.Needs random tests
Done.
All existing solutions invalidated - they need a split
Monoid
instance as well.Any replies to this thread will generate a notification to me; new posts may not.
Loading more items...