Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'scalaz-seven' of github.com:scalaz/scalaz into scalaz-s…
…even * 'scalaz-seven' of github.com:scalaz/scalaz: Fix up delimiter blocks in Category, Compose Remove alternative from GenTypeClass. Order no longer extends Function2 Some changes to Free examples for `KList` add `KList` aliases for `GenericList` tuned examples Added some Free operations
- Loading branch information
Showing
8 changed files
with
124 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package scalaz | ||
package typelevel | ||
|
||
import Typelevel._ | ||
|
||
trait KLists { | ||
|
||
type KList[M[_]] = GenericList[M] | ||
type KCons[M[_], H, +T <: KList[M]] = GenericCons[M, H, T] | ||
type KNil[M[_]] = GenericNil[M] | ||
|
||
object _KNil extends KNil[Nothing] | ||
|
||
// This is here to force that `KNil` is of type `KNil.type`, | ||
// and not of `object KNil`. Otherwise, there will be a type | ||
// mismatch if used in a pattern match. | ||
val KNil: _KNil.type = _KNil | ||
|
||
def :^: = GenericCons | ||
|
||
} | ||
|
||
// vim: expandtab:ts=2:sw=2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters