(- stackoverflow ) ghci, . :
foo.hs:34:71:
Couldn't match expected type `[e]' against inferred type `(a, b)'
In the second argument of `listArray', namely
`(endIndex, endIndex)'
In the expression:
listArray (startIndex, startIndex) (endIndex, endIndex) values
In the definition of `myArray':
myArray startIndex endIndex values
= listArray (startIndex, startIndex) (endIndex, endIndex) values
listArray:
listArray :: (Ix i) => (i, i) -> [e] -> Array i e
-- Defined in GHC.Arr
. , , , :
listArray (startIndex, endIndex) values
myArray Array a b, Array Int Double.
:
foo.hs:43:44:
Couldn't match expected type `a -> b'
against inferred type `[Char]'
In the first argument of `($)', namely
`maxC : (traceback string max end list1 list2 t1 t2)'
In the second argument of `($)', namely
`(maxC : (traceback string max end list1 list2 t1 t2))
$ (dynamicProgram casino string list1 list2 t1 t2)'
In the expression:
reverse
$ ((maxC : (traceback string max end list1 list2 t1 t2))
$ (dynamicProgram casino string list1 list2 t1 t2))
$ , $. , . , , .
:
foo.hs:51:11:
Couldn't match expected type `Array i e'
against inferred type `Int -> Int -> [Double] -> Array a b'
In the first argument of `(!)', namely `myArray'
In the expression: myArray ! (i, j)
In the definition of `@@': @@ i j = myArray ! (i, j)
myArray ; , .
, , . myArray, . Haskell, , , , , "" ( , , , ). , .
- , , , @@. , .
:
foo.hs:63:4:
Couldn't match expected type `[a]' against inferred type `IO ()'
In the first argument of `(++)', namely
`putStrLn
"I assume that the state 1 -> state 2 transmission probability is "'
In the expression:
(putStrLn
"I assume that the state 1 -> state 2 transmission probability is ")
++
(1 - trp1)
In a 'do' expression:
(putStrLn
"I assume that the state 1 -> state 2 transmission probability is ")
++
(1 - trp1)
: , , - , , ββ , $. , , , ; .
, , . , , :
listArray ((startIndex, startIndex), (endIndex, endIndex)) values
, Array (Int, Int) Double.