Insomnia
While insomnia is a common symptom of depression, antidepressants are effective for treating sleep problems whether or not they are associated with depression. While all antidepressants help regulate sleep, some antidepressants such as amitriptyline, doxepin, mirtazapine, and trazodone can have an immediate sedative effect, and are prescribed to treat insomnia. Amitriptyline and doxepin both have antihistaminergic, anticholinergic, and antiadrenergic properties, which contribute to both their therapeutic effects and side effect profiles, while mirtazapine's side effects are primarily antihistaminergic, and trazodone's side-effects are primarily antiadrenergic. Mirtazapine is known to decrease sleep latency (i.e., the time it takes to fall asleep), promoting sleep efficiency and increasing the total amount of sleeping time in people with both depression and insomnia.
Trimipramine
Trimipramine's primary use in medicine is in the treatment of major depressive disorder, especially where sedation is helpful due to its prominent sedative effects. The drug is also an effective anxiolytic, and can be used in the treatment of anxiety. In addition to depression and anxiety, trimipramine is effective in the treatment of insomnia, and unlike most other hypnotics, does not alter the normal sleep architecture. In particular, it does not suppress REM sleep, and dreams are said to "brighten" during treatment. Trimipramine also has some weak antipsychotic effects with a profile of activity described as similar to that of clozapine, and may be useful in the treatment of psychotic symptoms such as in delusional depression or schizophrenia.