Library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
Type arr is array (1 to mut_bits) of integer;
type chrom_matrix is array (1 to pop_s
我是Haskell的新手,当我尝试配置我码。我明白main()中的所有指令都需要是IO(),并且发生错误是因为我使用的函数之一(在Graphics.Gloss.Interface.IO.Animate中)没有返回IO()。我想用光泽包显示遗传算法的结果。 这里是我的代码: module Main where
import Prelude as P
import Control.Monad.R