本月博客排行
-
第1名
龙儿筝 -
第2名
lerf -
第3名
fantaxy025025 - johnsmith9th
- xiangjie88
- zysnba
年度博客排行
-
第1名
青否云后端云 -
第2名
宏天软件 -
第3名
gashero - wy_19921005
- vipbooks
- benladeng5225
- e_e
- wallimn
- javashop
- ranbuijj
- fantaxy025025
- jickcai
- gengyun12
- zw7534313
- qepwqnp
- 解宜然
- ssydxa219
- zysnba
- sam123456gz
- sichunli_030
- arpenker
- tanling8334
- gaojingsong
- kaizi1992
- xpenxpen
- 龙儿筝
- jh108020
- wiseboyloves
- ganxueyun
- xyuma
- xiangjie88
- wangchen.ily
- Jameslyy
- luxurioust
- lemonhandsome
- mengjichen
- jbosscn
- zxq_2017
- lzyfn123
- nychen2000
- forestqqqq
- wjianwei666
- ajinn
- zhanjia
- siemens800
- Xeden
- hanbaohong
- java-007
- 喧嚣求静
- mwhgJava
最新文章列表
haskell - Monads - ramp up with Monad
Fist we shall answer the question of what is Monad, monad are just beefed up applicative functors, much like applicative functors are only beefed up functors.
so, let's recall monad, and its pred ...
haskell - Functors, Applicative Functors and Monoids - Monoids application
we have introduced monoids before, and in this post, we will continue to examine the usage of monoids, we will continue this post with introduction on the some datascture implemented with monoids, su ...
haskell - Functors, Applicative Functors and Monoids - Monoids introduction
In this post, we will going to examine the monoid, monoids are a typeclass, which has an associative binary function and a value which acts as an identity with respect to that function.
Before w ...
haskell - Functors, Applicative Functors and Monoids - types/newtypes/data
It is because the difference between type/newtype/data always confuses than clearifies people, so it worth to make a dedicated section on their differences.
so most of this chapter will be narrat ...
haskell - Functors, Applicative Functors and Monoids - newtype keyword
so far, we have learnt the data keyword, and we can also learned how to create types synonyms with the type keywrod. (do not confuse that with the class keyword)
we'll be taking a look at how t ...
haskell - Functors, Applicative Functors and Monoids - Applicatives
Applicative is a special form of functor, in our previoius post we have already discussed the functor with ((->) r);
now, we will see the beefed up functor, which is in the Applicator typecl ...
haskell - Functors, Applicative Functors and Monoids
Functor is the Functors , or functors are essentially haskell. We will introduce something about functors, then we might progress to Applicative Functors.
Newtype keyword and others.
So, the ...
haskell - Functionally solving problems - Heathrow to London
Ensuing to the discussion that we had on the functionally solving problems that we had before. Where we have Reverse Polish notation calculator, we have yet another problem to solve, which is called ...
haskell - Functionally solving problems - Rerverse Polish Notation Caculator
So far we have introduced the basic construct that underpinning the haskell runtime and etc... Now we can come to the point where we leverage the haskell language to functinally solving some problems ...
haskell - Input and Output - exceptions
you might be wondering why the exceptions are in the input and outptu chapter, is there a fit, actually, the resaons why the haskell appears in the input and output chapter has its own reason.
H ...
haskell - Input and Output - ByteString
we know that we have lists, where we have used extensivly in many a occasion, but we how about we process the files because list is essentailly just a promise of a list, and so on. So you can think of ...
haskell - Input and Output - Randomness
n most other programming languages, you have functions that give you back some random number. Each time you call that function, you get back a (hopefully) different random number. How about Haskell? ...
haskell - Input and Output - Command Line
Command line is pretty all a necessity if you want to make a scritp or application that runs a terminal .
The System.Environment module has two cool I/O actions. One is getArgs, which has a type ...
haskell - Input and Output - Files and Streams
so far what we have dealt with are all functions and streams. now we might get our hand wet dealing with Files and Streams.
what we will discusses in this post includes:
getContent and get ...
haskell - Input and Output - helloworld
We've mentioned that Haskell is a purely functional language. Whereas in imperative languages you usually get things done by giving the computer a series of steps to execute, functional programming i ...
haskell - types and typeclasses - kinds
We have so far examine the types and typeclasses and we can make some types part of the typeclasses, however, we might have find out that some typeclasses expect to pass in a concrete type while some ...
haskell - types and typeclasses - typeclasses
we've learned about some of the standard Haskell typeclasses and we've seen which types are in them. We've also learned how to automatically make our own types instances of the standard typeclasses ...
haskell - types and typeclasses - Recursive Data Structures
we can make types whose constructors have fields that are of the same type! such as the trees where left child and right child are also a tree.
We are going to inspect one type which representst ...
haskell - types and typeclasses - type synonyms
We know that [Char] and String are equivalent and interchangeable . And this is achieved by the type synonyms.
Type synonyms don't really do anything per se, they're just about giving some types ...
haskell - types and typeclasses - Derived Instances
Now that you have made your own type and typeclasses. how to make these two associated. As you might have known that a type can be made an instance of a typeclasss if it supports that behavior.
e. ...