The present invention concerns novel compounds of the general formula:
 wherein R₁ is halogen or hydrogen and R₂ is halogen;
X is either oxygen, sulfor or methylene
R₃ and R₄ are the same or different and selected from hydrogen and lower alkyl;
n is 2 or 3;
A is selected from the following pyrimidyl or pyridyl groups
  wherein R₅ is selected from hydrogen, lower alkyl or halogen; R₆ and R₇ are the same or different and selected from hydrogen, halogen, lower alkyl, electron donor groups such as lower alkoxy or hydroxy, electron acceptor groups such as cyano, nitro, trifluoromethyl, COOR₈, CONR₉R₁₀ or CO-B; wherein R₈ is hydrogen or lower alkyl; R₉ and R₁₀ are the same or different and selected from hydrogen, lower alkyl and cycloalkyl;
B is selected from
 wherein m is 1, 2, 3 or 4.
R₁₁ is selected from hydrogen or lower alkyl, and the pharmacologically active salts thereof.
The new compounds are useful for treating mental disorders.  
                            本发明涉及通式如下的新型化合物
 其中 R₁ 是卤素或氢,R₂ 是卤素;
X 是氧、
硫或亚甲基
R₃ 和 R₄ 相同或不同,选自氢和低级烷基;
n 为 2 或 3;
A 选自以下
嘧啶基团或
吡啶基团
  其中 R₅ 选自氢、低级烷基或卤素;R₆ 和 R₇ 相同或不同,选自氢、卤素、低级烷基、电子供体基团如低级烷氧基或羟基、电子受体基团如
氰基、硝基、三
氟甲基、COOR₈、CONR₉R₁₀ 或 CO-B;其中 R₈ 是氢或低级烷基;R₉ 和 R₁₀ 相同或不同,选自氢、低级烷基和环烷基;
B 选自
 其中 m 为 1、2、3 或 4。
R₁₁ 选自氢或低级烷基及其药理活性盐。
这些新化合物可用于治疗精神疾病。